Sha256: d0d7f394a759f292adc2a8cfed10a42c6cf82dce2bcf85daa04f3301fe567130
Contents?: true
Size: 452 Bytes
Versions: 7
Compression:
Stored size: 452 Bytes
Contents
var browserify = require('../'); var test = require('tap').test; var vm = require('vm'); test('require same file locally and globally', function (t) { t.plan(2); var b = browserify(__dirname + '/multi_require/main.js', { basedir: __dirname }); b.require('./multi_require/a.js', {expose: 'a'}); b.bundle(function (err, src) { t.ifError(err); var c = {t: t}; vm.runInNewContext(src, c); }); });
Version data entries
7 entries across 7 versions & 2 rubygems