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

Commit

Permalink
ensure plugins can output esm
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Aug 12, 2015
1 parent 1900734 commit db0f07e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compilers/esm.js
Expand Up @@ -46,7 +46,8 @@ exports.compile = function(load, opts, loader) {
var normalize = opts.normalize;
var options;

var source = load.originalSource;
// load.metadata.originalSource set by esm layer to allow plugin -> esm
var source = load.metadata.originalSource || load.originalSource;

return Promise.resolve(global[loader.transpiler == 'typescript' ? 'ts' : loader.transpiler] || loader.import(loader.transpiler))
.then(function(transpiler) {
Expand Down

0 comments on commit db0f07e

Please sign in to comment.