Sha256: c78280f407cc0c4a509cb5d5aa6c91a022a630c9a19afa50082b25cdbc4aa39f
Contents?: true
Size: 635 Bytes
Versions: 7
Compression:
Stored size: 635 Bytes
Contents
var mdeps = require('../'); var test = require('tap').test; var JSONStream = require('JSONStream'); var packer = require('browser-pack'); var path = require('path'); test('transform', function (t) { t.plan(4); var p = mdeps({ transform: [ 'insert-aaa', 'insert-bbb' ], transformKey: [ 'browserify', 'transform' ] }); p.end(path.join(__dirname, '/files/tr_module/main.js')); var pack = packer(); p.pipe(JSONStream.stringify()).pipe(pack); var src = ''; pack.on('data', function (buf) { src += buf }); pack.on('end', function () { Function('t', src)(t); }); });
Version data entries
7 entries across 7 versions & 2 rubygems