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

Commit 67d633e

Browse files
committed
Transpile color module to ES3
1 parent 732269a commit 67d633e

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@
6565
},
6666
"include": [
6767
"./src/**/*",
68-
]
68+
]
6969
}

webpack.config.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,19 +127,18 @@ LICENSE file in the root directory of this source tree."),
127127
options: { inline: true, fallback: false }
128128
},
129129
{
130-
test: /\.(ts|tsx)$/,
130+
// Let's pass the color* modules through the TS Loader to transpile to ES3
131+
test: /\.js$/,
131132
loader: 'ts-loader',
133+
include: /node_modules\/color/,
132134
options: {
133-
compilerOptions: {
134-
declaration: false,
135-
}
135+
transpileOnly: true,
136136
}
137137
},
138138
{
139-
// Let's pass the color* modules through the TS Loader to transpile to ES3
140-
test: /\.(js)$/,
139+
test: /\.(ts|tsx)$/,
141140
loader: 'ts-loader',
142-
exclude: /node_modules\/(?!color)/,
141+
exclude: /node_modules/,
143142
options: {
144143
compilerOptions: {
145144
declaration: false,

0 commit comments

Comments
 (0)