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

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Aug 1, 2016
1 parent 3cdb29c commit 7a3ddbf
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 @@ -168,7 +168,7 @@ CJSRegisterTransformer.prototype.transformScript = function(tree) {
var useStrict = hasRemoveUseStrict(scriptItemList) ? [createUseStrictDirective()] : [];

scriptItemList = useStrict.concat(parseStatements([
(globalExpression ? globalExpression + nl : '') + 'var define, global = this, GLOBAL = this;'
(globalExpression ? globalExpression + nl : '') + 'var define, global = this || self, GLOBAL = global;'
])).concat(scriptItemList).concat(parseStatements([
'return module.exports;'
]));
Expand Down

0 comments on commit 7a3ddbf

Please sign in to comment.