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

Commit

Permalink
correct sfx check
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Aug 18, 2015
1 parent 7cb1a1d commit b338d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compilers/cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ exports.compile = function(load, opts, loader) {

var output = compiler.write(tree, load.address);

if (this.sfx)
if (opts.sfx)
output = output.replace(/\s+System\._nodeRequire/g, ' $__System._nodeRequire');

return Promise.resolve({
Expand Down

0 comments on commit b338d6a

Please sign in to comment.