babel-plugin-inline-script-import
A babel plugin that inlines all JS imports straight into your code.
Example
Given the following module file:
const foo = { };
The plugin will transform:
; foo;
to:
var foo = { }; foo;
Installation
Install the plugin through npm
, you will also need babel
installed:
$ npm install --save-dev babel-plugin-inline-script-import
Add babel-plugin-inline-script-import
to the list of plugins. If you are using a .babelrc
file, the file should have an entry that looks like this:
License
MIT