You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Describe the bug
Webpack build does not always produce/emit all necessary files whenever a name resolution (e.g. myfile.android.ts or myfile.ios.ts) needs to be applied and multiple files are saved simultaneously.
Note that this issue is only reproduced with an angular project.
in the log.
Afterwards change both console.log statements in browse.module.android.ts and in home.module.android.ts to console.log("2222") and save them both at the same time. Webpack kicks in and builds but only 0.js is transferred to the device and the log states:
JS: 2222
JS: 1111
Expected behavior
The log should say
JS: 2222
JS: 2222
Additional context
According to my testing the issue only occurs in angular projects. And with webpack (--bundle).
I've tried with --bundle in a non-angular project but couldn't manage to reproduce it.
This issue only occurs if multiple files need to be compiled in the same batch (a single batch kicks in every 300 ms after the first change. This can be modified with this parameter) and at least one of them requires name resolution. The easiest way to put two files into the same batch is to save them at the same time.