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

Version Path
minimum_viable_product-0.0.11 test/dummy/node_modules/browserify/test/multi_require.js
brwy_rails-0.0.6 test/dummy/node_modules/browserify/test/multi_require.js
brwy_rails-0.0.5 test/dummy/node_modules/browserify/test/multi_require.js
brwy_rails-0.0.4 test/dummy/node_modules/browserify/test/multi_require.js
brwy_rails-0.0.3 test/dummy/node_modules/browserify/test/multi_require.js
brwy_rails-0.0.2 test/dummy/node_modules/browserify/test/multi_require.js
brwy_rails-0.0.1 test/dummy/node_modules/browserify/test/multi_require.js