ignore_transform_key.js 373 B

1234567891011121314151617
  1. var browserify = require('../');
  2. var test = require('tap').test;
  3. var vm = require('vm');
  4. test('ignore transform', function(t) {
  5. t.plan(1);
  6. var b = browserify({
  7. transformKey: false
  8. });
  9. b.add(__dirname + '/ignore_transform_key/main.js');
  10. b.bundle(function(err, src) {
  11. if (err) t.fail(err);
  12. vm.runInNewContext(src, {t: t});
  13. });
  14. });