Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
Transpile color module to ES3
Browse files Browse the repository at this point in the history
  • Loading branch information
danthe3rd committed Jul 28, 2021
1 parent 732269a commit 67d633e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@
},
"include": [
"./src/**/*",
]
]
}
13 changes: 6 additions & 7 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,19 +127,18 @@ LICENSE file in the root directory of this source tree."),
options: { inline: true, fallback: false }
},
{
test: /\.(ts|tsx)$/,
// Let's pass the color* modules through the TS Loader to transpile to ES3
test: /\.js$/,
loader: 'ts-loader',
include: /node_modules\/color/,
options: {
compilerOptions: {
declaration: false,
}
transpileOnly: true,
}
},
{
// Let's pass the color* modules through the TS Loader to transpile to ES3
test: /\.(js)$/,
test: /\.(ts|tsx)$/,
loader: 'ts-loader',
exclude: /node_modules\/(?!color)/,
exclude: /node_modules/,
options: {
compilerOptions: {
declaration: false,
Expand Down

0 comments on commit 67d633e

Please sign in to comment.