ts-transform-system-import
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

ts-transform-system-import

Transform System.import in TS to Promise-wrapped require

Usage

Put this in your list of before transformers when you compile TS. This allows you to:

System.import('foo').then(module)

to become

Promise.resolve(require('foo')).then(module)

/ts-transform-system-import/

    Package Sidebar

    Install

    npm i ts-transform-system-import

    Weekly Downloads

    0

    Version

    0.1.3

    License

    MIT

    Last publish

    Collaborators

    • longlho