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