babel-plugin-transform-es2015-modules-amd-lazy
v2.0.1
Published
Babel transform to AMD that skips existing AMD modules
Downloads
86,463
Readme
babel-plugin-transform-es2015-modules-amd-lazy
This Babel transform is a fork of the Babel AMD transform that will only AMD-ify a file if it contains an import
or export
(or export default
).
If you have a legitimate use case where you have source files without imports or exports that should still be transformed to AMD modules, or if you have a pure ES2015 codebase, then this plugin probably isn't for you.
This plugin is mainly useful in a transitional codebase where you have a combination of ES2015, existing AMD modules and scripts that aren't either, and you only want the ES2015 modules transformed to AMD.