Skip to content
This repository has been archived by the owner on May 24, 2019. It is now read-only.

Transform `System.import` in TS to Promise-wrapped require

License

Notifications You must be signed in to change notification settings

longlho/ts-transform-system-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-transform-system-import

[DEPRECATED] Please use ES6 import instead. This plugin is only for backwards compatibility.

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)

About

Transform `System.import` in TS to Promise-wrapped require

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published