Sha256: a4da5bf9340d8683b7ae4f453266c9eb2c10fe69a0268504f51bcbde6c4486bc
Contents?: true
Size: 591 Bytes
Versions: 7
Compression:
Stored size: 591 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(1); var p = mdeps({ transformKey: [ 'browserify', 'transform' ] }); p.end(path.join(__dirname, '/files/tr_whole_package/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