Sha256: f3294ebcd2de1597fc629b285cbd506efceebf393d253d87ecf333104075d92b

Contents?: true

Size: 586 Bytes

Versions: 5

Compression:

Stored size: 586 Bytes

Contents

var mdeps = require('../');
var test = require('tap').test;
var JSONStream = require('JSONStream');
var packer = require('browser-pack');

test('transform', function (t) {
    t.plan(3);
    var p = mdeps(__dirname + '/files/tr_module/main.js', {
        transform: [ 'insert-aaa', 'insert-bbb' ],
        transformKey: [ 'browserify', 'transform' ]
    });
    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

5 entries across 5 versions & 2 rubygems

Version Path
sprockets-browserify-0.2.0 node_modules/browserify/node_modules/module-deps/test/tr_module.js
ruby-wisp-source-0.8.0 vendor/node_modules/browserify/node_modules/module-deps/test/tr_module.js
ruby-wisp-source-0.7.0 vendor/node_modules/browserify/node_modules/module-deps/test/tr_module.js
sprockets-browserify-0.1.2 node_modules/module-deps/test/tr_module.js
sprockets-browserify-0.1.0 node_modules/module-deps/test/tr_module.js