Sha256: a605e1dde5037591ec3dd207e24ce527b3074c383e98b5841cf40f2d7b25ad52

Contents?: true

Size: 703 Bytes

Versions: 7

Compression:

Stored size: 703 Bytes

Contents

var browserify = require('../');
var test = require('tap').test;

var pubdir = __dirname;
var dir = pubdir + '/bundle-bundle-external';

var opt = {
    debug: true,
    basedir: pubdir,
    exposeAll: true
};

test('bundle bundle external', function (t) {
    t.plan(1);
    var bundle1 = browserify(opt);
    var name = dir + '/foo.js';
    bundle1.require(name, { entry: true, expose: name, basedir: pubdir });

    var bundle2 = browserify({
        debug: true,
        basedir: pubdir,
        entries: [ dir + '/baz.js' ]
    });

    // adding and removing this line causes failure //
    //bundle2.external(bundle1);

    bundle2.bundle(function(err, src) {
        t.ifError(err);
    });
});

Version data entries

7 entries across 7 versions & 2 rubygems

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