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

Commit

Permalink
ensure global require is cleared on executions
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Mar 29, 2016
1 parent b5cf432 commit b7084cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ function wrapSFXOutputs(loader, tree, modules, outputs, entryPoints, compileOpts
// next wrap with the core code
return asp(fs.readFile)(path.resolve(__dirname, (allRegister ? '../templates/sfx-core-register.min.js' : '../templates/sfx-core.min.js')))
.then(function(sfxcore) {
outputs.unshift(sfxcore.toString(), "(" + JSON.stringify(entryPoints) + ", " + JSON.stringify(externalDepIds) + ", function(" + compileOpts.systemGlobal + ") {\n");
outputs.unshift(sfxcore.toString(), "(" + JSON.stringify(entryPoints) + ", " + JSON.stringify(externalDepIds) + ", function(" + compileOpts.systemGlobal + ", require) {\n");

outputs.push("})");
return asp(fs.readFile)(path.resolve(__dirname, '../templates/sfx-' + compileOpts.format + '.js'))
Expand Down

0 comments on commit b7084cc

Please sign in to comment.