babel-plugin-transform-es2015-modules-amd-lazy

2.0.1 • Public • Published

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.

/babel-plugin-transform-es2015-modules-amd-lazy/

    Package Sidebar

    Install

    npm i babel-plugin-transform-es2015-modules-amd-lazy

    Weekly Downloads

    18,143

    Version

    2.0.1

    License

    Apache-2.0

    Unpacked Size

    8.29 kB

    Total Files

    5

    Last publish

    Collaborators

    • mszczepanski