nativescript-dev-webpack
nativescript-dev-webpack copied to clipboard
hmr hot update incorrectly transferred
Environment
- CLI: @next
- Plugin(s): nativescript-dev-webpack@next
To Reproduce
tns create app --ngnpm i nativescript-dev-webpack@next --save-dev --save-exactnode_modules/.bin/update-ns-webpack --deps --configstns run ios- in
app.module.tschange some of the imports to use invalid path - the compilation stops on the error which is expected
- fix the error Observe the log: Webpack compilation complete. Watching for file changes. Webpack build done! Successfully transferred bundle.js on device emulator-5554. Successfully transferred runtime.js on device emulator-5554. Successfully transferred vendor.js on device emulator-5554. Successfully transferred 8e8d0cd48028dd74cb35.hot-update.json on device emulator-5554. JS: HMR: Checking for updates to the bundle with hmr hash 8e8d0cd48028dd74cb35. JS: HMR: No Modules Updated. JS: HMR: Successfully applied update with hmr hash 8e8d0cd48028dd74cb35. App is up to date. Restarting application on device emulator-5554... JS: HMR: Hot Module Replacement Enabled. Waiting for signal.
Note: 8e8d0cd48028dd74cb35.hot-update.json should not be transferred
Additional context Not reproducible with [email protected]
- The error
No Modules Updated.is related to this issue. - The error with transferring only
.hot-update.jsonfile is fixed with this PR in webpack repo.
However, it seems as a minor issue as actually the hmr chain is not broken.