Browse Source

Removes ts-loader experimentalWatchApi flag

Hoping to reduce strange issues with watch
main
Eric Amodio 5 years ago
parent
commit
dd1803933c
1 changed files with 4 additions and 8 deletions
  1. +4
    -8
      webpack.config.js

+ 4
- 8
webpack.config.js View File

@ -37,8 +37,7 @@ function getExtensionConfig(env) {
new CleanPlugin({ cleanOnceBeforeBuildPatterns: ['**/*', '!**/webviews/**'] }), new CleanPlugin({ cleanOnceBeforeBuildPatterns: ['**/*', '!**/webviews/**'] }),
new ForkTsCheckerPlugin({ new ForkTsCheckerPlugin({
async: false, async: false,
eslint: true,
useTypescriptIncrementalApi: true
eslint: true
}) })
]; ];
@ -101,8 +100,7 @@ function getExtensionConfig(env) {
use: { use: {
loader: 'ts-loader', loader: 'ts-loader',
options: { options: {
transpileOnly: true,
experimentalWatchApi: true
transpileOnly: true
} }
} }
} }
@ -150,8 +148,7 @@ function getWebviewsConfig(env) {
new ForkTsCheckerPlugin({ new ForkTsCheckerPlugin({
tsconfig: path.resolve(__dirname, 'tsconfig.webviews.json'), tsconfig: path.resolve(__dirname, 'tsconfig.webviews.json'),
async: false, async: false,
eslint: true,
useTypescriptIncrementalApi: true
eslint: true
}), }),
new MiniCssExtractPlugin({ new MiniCssExtractPlugin({
filename: '[name].css' filename: '[name].css'
@ -257,8 +254,7 @@ function getWebviewsConfig(env) {
loader: 'ts-loader', loader: 'ts-loader',
options: { options: {
configFile: 'tsconfig.webviews.json', configFile: 'tsconfig.webviews.json',
transpileOnly: true,
experimentalWatchApi: true
transpileOnly: true
} }
} }
}, },

Loading…
Cancel
Save