Skip to content
This repository was archived by the owner on Dec 15, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ FastBrowserify.prototype.read = function(readTree) {
});

bundle.browserify = browserify(bundle.browserifyOptions);

// Make sure any files are added at the beginning, in case polyfills are added.
if (bundleTemplate.add) {
// Set up the transforms
bundle.browserify.add(bundleTemplate.add)
}

// Set up the external files
[].concat(self.options.externals).concat(bundleTemplate.externals).filter(Boolean).forEach(function(external) {
Expand Down