Sha256: f20f1d90f83bbaf88b2d8774f375aa561e4cb85c6516507be6cdead92fad601b
Contents?: true
Size: 388 Bytes
Versions: 7
Compression:
Stored size: 388 Bytes
Contents
var browserify = require('../'); var vm = require('vm'); var test = require('tap').test; test('subdep', function (t) { t.plan(1); var b = browserify(); b.require(__dirname + '/subdep/index.js', { expose: 'subdep' }); b.bundle(function (err, src) { var c = {}; vm.runInNewContext(src, c); t.equal(c.require('subdep'), 'zzz'); }); });
Version data entries
7 entries across 7 versions & 2 rubygems