bit-loader-js
bit-loader plugin for processing JavaScript dependencies with cjs and import syntax
by default, bit-loader-js will only process require and import syntax. You can optionally enable amd syntax.
Options
- amd: boolean. defaults to false. Flag to enable/disable amd syntax
- cjs: boolean. defaults to true. Flag to enable/disable cjs syntax
Example
Plugin configuration with bit-bundler
var BitBundler = ;var jsPlugin = ;var bundler =loader:plugins:;
With amd syntax enabled
var BitBundler = ;var jsPlugin = ;var bundler =loader:plugins:;
Install
$ npm install bit-loader-js --save
License
Licensed under MIT