Skip to content

Commit

Permalink
esModuleInterop solves React.Component references
Browse files Browse the repository at this point in the history
  • Loading branch information
ericclemmons committed Apr 7, 2020
1 parent c1d8b84 commit 7cc7d4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ async function buildES5(typeScriptCompiler) {
: undefined;
// tsconfig for ES5 generating
let compilerOptions = {
allowSyntheticDefaultImports: true,
esModuleInterop: true,
noImplicitAny: false,
lib: ['dom', 'es2017', 'esnext.asynciterable'],
downlevelIteration: true,
Expand Down Expand Up @@ -200,7 +200,7 @@ function buildES6(typeScriptCompiler) {
: undefined;
// tsconfig for ESM generating
let compilerOptions = {
allowSyntheticDefaultImports: true,
esModuleInterop: true,
noImplicitAny: false,
lib: ['dom', 'es2017', 'esnext.asynciterable'],
downlevelIteration: true,
Expand Down

0 comments on commit 7cc7d4a

Please sign in to comment.