bundle.js 456 B

12345678910111213141516171819
  1. var splicer = require('../');
  2. var through = require('through2');
  3. var deps = require('module-deps');
  4. var pack = require('browser-pack');
  5. var pipeline = splicer.obj([
  6. 'deps', [ deps() ],
  7. 'pack', [ pack({ raw: true }) ]
  8. ]);
  9. pipeline.get('deps').push(through.obj(function (row, enc, next) {
  10. row.source = row.source.toUpperCase();
  11. this.push(row);
  12. next();
  13. }));
  14. pipeline.pipe(process.stdout);
  15. pipeline.end(__dirname + '/browser/main.js');