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

Commit

Permalink
ensure json formatter respects system global
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jan 19, 2016
1 parent 6e24a78 commit 739b67e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compilers/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports.compile = function(load, opts, loader) {
json = optimizePackageConfig(json);

return Promise.resolve({
source: 'System.registerDynamic(' + (opts.anonymous ? '' : '"' + load.name + '", ') + '[], false, function() {\n' +
source: opts.systemGlobal + '.registerDynamic(' + (opts.anonymous ? '' : '"' + load.name + '", ') + '[], false, function() {\n' +
' return ' + JSON.stringify(json, null, 2).replace(/\n/g, '\n ') + ';\n' +
'});\n'
});
Expand Down

0 comments on commit 739b67e

Please sign in to comment.