Description
Hey, I've been using this plugin for a short while now and in the older versions I never had much issue with compilation on file change. As of recently, though, changed files will not be compiled and added to the application without restarting the whole server. It gets to be rather troublesome when I just want to make minor changes but it requires a server restart to happen. I'm not sure if it's something I'm doing wrong or if there's a bug in the compiler.
Here's a copy of my tsconfig.json:
{
"compilerOptions": {
"target": "es2017",
"allowJs": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noImplicitThis": true,
"noEmitOnError": false,
"noEmit": true,
"inlineSourceMap": true,
"inlineSources": true,
"baseUrl": ".",
"module": "es6",
"paths": {
"my-app/tests/*": [
"tests/*"
],
"my-app/mirage/*": [
"mirage/*"
],
"my-app/*": [
"app/*"
],
"*": [
"types/*"
]
}
},
"include": [
"app",
"tests",
"types",
"mirage"
]
}
Here's the console output after a change:
file added pods\components\nav-search-bar\component.ts___jb_tmp___
file deleted pods\components\nav-search-bar\component.ts
file added pods\components\nav-search-bar\component.ts___jb_old___
file deleted pods\components\nav-search-bar\component.ts___jb_tmp___
file added pods\components\nav-search-bar\component.ts
file deleted pods\components\nav-search-bar\component.ts___jb_old___
14:45:48 - File change detected. Starting incremental compilation...
14:45:49 - Compilation complete. Watching for file changes.
Build successful (10566ms) – Serving on http://localhost:4200/
Slowest Nodes (totalTime => 5% ) | Total (avg)
----------------------------------------------+---------------------
broccoli-typescript-compiler (1) | 3022ms
AssetRewrite (2) | 2070ms (1035 ms)
Fingerprint (2) | 1128ms (564 ms)
And here's yet another console output, but this one has an additional line (surrounded by *) that I'm not entirely sure about:
file added pods\components\nav-search-bar\component.ts___jb_tmp___
file deleted pods\components\nav-search-bar\component.ts
file added pods\components\nav-search-bar\component.ts___jb_old___
file added pods\components\nav-search-bar\component.ts
file deleted pods\components\nav-search-bar\component.ts___jb_tmp___
file deleted pods\components\nav-search-bar\component.ts___jb_old___
14:46:58 - File change detected. Starting incremental compilation...
14:46:58 - Compilation complete. Watching for file changes.
****file changed tsc-delayed-rebuild****
Build successful (10834ms) – Serving on http://localhost:4200/
Slowest Nodes (totalTime => 5% ) | Total (avg)
----------------------------------------------+---------------------
AssetRewrite (2) | 2976ms (1488 ms)
broccoli-typescript-compiler (1) | 2855ms
Fingerprint (2) | 1106ms (553 ms)
SassCompiler (1) | 560ms
Whenever I make changes, the console tells me that it's watching for file changes and will reload the page, but none of the changes are picked up. Let me know if any more information is needed.