Browse Source

Adds more excludes for node_modules

main
Eric Amodio 6 years ago
parent
commit
c4bc7d1cee
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      webpack.config.js

+ 6
- 5
webpack.config.js View File

@ -76,7 +76,6 @@ function getExtensionConfig(env) {
output: { output: {
libraryTarget: 'commonjs2', libraryTarget: 'commonjs2',
filename: 'extension.js', filename: 'extension.js',
path: path.resolve(__dirname, 'dist'),
devtoolModuleFilenameTemplate: 'file:///[absolute-resource-path]' devtoolModuleFilenameTemplate: 'file:///[absolute-resource-path]'
}, },
externals: { externals: {
@ -87,12 +86,13 @@ function getExtensionConfig(env) {
{ {
test: /\.ts$/, test: /\.ts$/,
enforce: 'pre', enforce: 'pre',
use: 'tslint-loader'
use: 'tslint-loader',
exclude: /node_modules/
}, },
{ {
test: /\.tsx?$/, test: /\.tsx?$/,
use: 'ts-loader', use: 'ts-loader',
exclude: /node_modules/
exclude: /node_modules|\.d\.ts$/
} }
] ]
}, },
@ -230,7 +230,8 @@ function getUIConfig(env) {
tsConfigFile: 'ui.tsconfig.json' tsConfigFile: 'ui.tsconfig.json'
} }
} }
]
],
exclude: /node_modules/
}, },
{ {
test: /\.tsx?$/, test: /\.tsx?$/,
@ -240,7 +241,7 @@ function getUIConfig(env) {
configFile: 'ui.tsconfig.json' configFile: 'ui.tsconfig.json'
} }
}, },
exclude: /node_modules/
exclude: /node_modules|\.d\.ts$/
}, },
{ {
test: /\.scss$/, test: /\.scss$/,

Loading…
Cancel
Save