deps-transform
run browserify transforms on a module-deps stream
Last updated 2 years ago by goto-bus-stop .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install deps-transform 
SYNC missed versions from official npm registry.

deps-transform

run browserify transforms on a module-deps stream

npm travis standard

Install

npm install deps-transform

Usage

Use it to apply transforms after the 'deps' stage in the browserify pipeline:

// minify JUST before packing
b.pipeline.get('pack').unshift(
  transform('uglifyify'))

You can use it to apply transforms on a preexisting bundle:

# extract modules from bundle.js,
# format them nicely using babel-preset-unminify,
# save in the out/ folder.
browser-unpack < bundle.js | \
  deps-transform babelify --presets [ unminify ] | \
  deps-write out

Perhaps generate two bundles, one for modern browsers and one for old browsers:

browser-unpack < bundle.es6.js | \
  deps-transform babelify --presets [ env ] | \
  browser-pack > bundle.es5.js

License

Apache-2.0

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

1 Versions

  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |