Skip to content

Commit

Permalink
fixing method call for esm build (ampproject#19691)
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekbh authored Dec 10, 2018
1 parent a94f150 commit fe1e8fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-system/single-pass.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ function transformPathsToTempDir(graph, config) {
} else {
const {code} = babel.transformFileSync(f, {
plugins: conf.plugins(
/* isEsmBuild */ config.define.indexOf['ESM_BUILD=true'] !== -1,
/* isEsmBuild */ config.define.indexOf('ESM_BUILD=true') !== -1,
/* isCommonJsModule */ isCommonJsModule(f)),
retainLines: true,
});
Expand Down

0 comments on commit fe1e8fb

Please sign in to comment.