exclude.js 401 B

123456789101112131415161718192021
  1. var browserify = require('../');
  2. var test = require('tap').test;
  3. var vm = require('vm');
  4. test('exclude array', function(t) {
  5. t.plan(2);
  6. var b = browserify();
  7. b.add(__dirname + '/exclude/array.js');
  8. b.exclude([
  9. __dirname + '/exclude/skip.js',
  10. __dirname + '/exclude/skip2.js'
  11. ]);
  12. b.bundle(function (err, src) {
  13. if (err) {
  14. t.fail(err);
  15. }
  16. vm.runInNewContext(src, { t: t });
  17. });
  18. });