webpack config - include src instead of excluding node_modules

This commit is contained in:
Elliot Lee
2018-02-07 12:47:00 -08:00
parent 3ebbca0083
commit 139159bf1a

View File

@@ -51,7 +51,9 @@ function getWebpackConfig(extension, overrides) {
}, { }, {
test: /\.ts$/, test: /\.ts$/,
use: 'ts-loader', use: 'ts-loader',
exclude: /node_modules/, include: [
path.resolve(__dirname, 'src')
]
}, { }, {
test: /\.json/, test: /\.json/,
use: 'json-loader', use: 'json-loader',