diff --git a/tsconfig.webpack.json b/tsconfig.webpack.json new file mode 100644 index 0000000..de2a707 --- /dev/null +++ b/tsconfig.webpack.json @@ -0,0 +1,12 @@ + +{ + "extends": "./tsconfig", + "compilerOptions": { + "sourceMap": true + }, + "exclude": [ + "src/**/*.test.ts", + "src/**/*.test.tsx", + "node_modules" + ] +} diff --git a/webpack.common.js b/webpack.common.js index 047acdb..7468914 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -14,7 +14,10 @@ module.exports = { module: { rules: [{ test: /\.tsx?$/, - loader: 'ts-loader' + loader: 'ts-loader', + options: { + configFile: 'tsconfig.webpack.json' + } }] }, plugins: [