1.0.2 • Published 7 years ago

bit-loader-npm v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Deprecated. Please use bit-loader-js

bit-loader-npm

bit-loader plugins for managing npm modules

bit-loader-npm 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 = require("bit-bundler");
var npmPlugin = require("bit-loader-npm");

var bundler = new Bitbundler({
  loader: {
    plugins: [
      npmPlugin()
    ]
  }
});

With amd syntax enabled

var BitBundler = require("bit-bundler");
var npmPlugin = require("bit-loader-npm");

var bundler = new Bitbundler({
  loader: {
    plugins: [
      npmPlugin({
        amd: true
      })
    ]
  }
});

Install

$ npm install bit-loader-npm --save

License

Licensed under MIT