Skip to content

Commit

Permalink
Include js files for ts-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer authored and ibgreen committed Dec 7, 2022
1 parent 61052b0 commit 257d745
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/webpack.config.local.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ function makeLocalDevConfig(EXAMPLE_DIR = LIB_DIR, linkToLuma, linkToMath) {
// Compile source using babel. This is not necessary for src to run in the browser
// However class inheritance cannot happen between transpiled/non-transpiled code
// Which affects some examples
test: /(\.ts|\.tsx)$/,
test: /(\.js|\.ts|\.tsx)$/,
loader: 'ts-loader',
options: {
configFile: resolve(ROOT_DIR, "tsconfig.build.json"),
configFile: resolve(ROOT_DIR, 'tsconfig.build.json'),
transpileOnly: true,
compilerOptions: {
target: "es2019",
target: 'es2019',
noEmit: false
}
},
Expand Down

0 comments on commit 257d745

Please sign in to comment.