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

Commit

Permalink
pass through esModule meta option to compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed May 30, 2017
1 parent 802ab43 commit 3eaf589
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion compilers/amd.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ exports.compile = function (load, opts, loader) {
return opts.normalize ? load.depMap[dep] : dep;
},
systemGlobal: opts.systemGlobal,
deps: load.deps
deps: load.deps,
esModule: load.metadata.esModule
}]);
};
3 changes: 2 additions & 1 deletion compilers/cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ exports.compile = function (load, opts, loader) {
},
path: path,
static: opts.static,
systemGlobal: opts.systemGlobal
systemGlobal: opts.systemGlobal,
esModule: load.metadata.esModule
}]);
};
3 changes: 2 additions & 1 deletion compilers/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ exports.compile = function (load, opts, loader) {
exportName: load.metadata.exports,
globals: normalizedGlobals,
moduleName: !opts.anonymous && load.name,
systemGlobal: opts.systemGlobal
systemGlobal: opts.systemGlobal,
esModule: load.metadata.esModule
}]);
};

Expand Down

0 comments on commit 3eaf589

Please sign in to comment.