Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
automatically treat globalDeps as externals
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jun 15, 2016
1 parent 91a4271 commit c3c3e73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/builder.js
Expand Up @@ -381,6 +381,10 @@ function processTraceOpts(options, defaults) {
extend(opts, defaults);
extend(opts, options);

// globalDeps are externals
if (opts.globalDeps)
opts.externals = opts.externals.concat(Object.keys(opts.globalDeps));

// conditional tracing defaults
if (typeof opts.browser == 'boolean') {
// browser, node -> browser, ~browser, node, ~node
Expand Down

0 comments on commit c3c3e73

Please sign in to comment.