mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
fix(webpack): use async type-checking in watch mode
This commit is contained in:
@ -186,7 +186,7 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
|
||||
paths.indexOf('@nativescript/core/globals/index.js')
|
||||
] = polyfillsPath;
|
||||
|
||||
// replace paths with the update paths
|
||||
// replace paths with the updated paths
|
||||
config.entry('bundle').clear().merge(paths);
|
||||
}
|
||||
}
|
||||
|
@ -233,11 +233,7 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
|
||||
.plugin('ForkTsCheckerWebpackPlugin')
|
||||
.use(ForkTsCheckerWebpackPlugin, [
|
||||
{
|
||||
// If we use "async" errors compiling typescript will be ignored by
|
||||
// WebPack (we will send the "compilation" message back to the CLI,
|
||||
// and the process exit code will be zero), therefore we will end
|
||||
// up with a broken build
|
||||
async: false,
|
||||
async: !!env.watch,
|
||||
typescript: {
|
||||
memoryLimit: 4096,
|
||||
},
|
||||
|
Reference in New Issue
Block a user