Skip to content

Commit 7cdd3fb

Browse files
FIX Explicitly mention tsconfig file in webpack.config.js to avoid error while parsing tsconfig.json, The 'files' list in config file 'tsconfig.json' is empty
See (TypeStrong/ts-loader#405 (comment))
1 parent 299570e commit 7cdd3fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ const config = {
103103
test: /\.tsx?$/,
104104
use: 'ts-loader',
105105
exclude: /node_modules/,
106+
options: {
107+
configFile: "./tsconfig.json"
108+
}
106109
},
107110
{
108111
test: /\.css$/,

0 commit comments

Comments
 (0)