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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.3
    1
  • 0.1.2
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i ts-transform-system-import

Weekly Downloads

1

Version

0.1.3

License

MIT

Last publish

Collaborators

  • longlho