deps-bits
v0.1.4
Published
Process amd and cjs dependencies in bit runner and bit imports
Downloads
17
Readme
deps-bits
Process amd and cjs dependencies in bit runner.
Side note: this module is also used by bit imports to process dependencies in the browser.
Configuration bitrunnerfile.js
Process dependencies
var bitRunner = require('bit-runner');
var deps = require('deps-bits');
/**
* JavaScript pipeline
*/
bitRunner.register('default', function buildPipeline(task) {
task
.load('index.js')
.then(deps)
});
Configure it
deps bits uses acorn internally, and the configuration settings provided here are forwarded right to it. So, please refer to acorn's docs for details on the available options.
var bitRunner = require('bit-runner');
var deps = require('deps-bits');
/**
* JavaScript pipeline
*/
bitRunner.register('default', function buildPipeline(task) {
task
.load('index.js')
.then(deps.config({ecmaVersion: 6}))
});