Overview
Hot Module Replacement (HMR) is a feature provided by webpack. It makes it possible to replace modules in a bundled application while the application is running.
Integrating HMR within NativeScript will improve the development experience by:
- reducing the time to apply the updates when changing files;
- preserving the application state between reloads.
Design
Implementation details and motivation of the feature can be found in its design document.
Tasks
NativeScript 5.0
After NativeScript 5.0
The possible improvements are explained in the design doc.
Known issues
Contributing
HMR provides us with so many possibilities!
If you want to work on a task from the list, tell us and we will do our best to help you!
If you have another great idea on how to make HMR even cooler, share it in the comments!
Discussion
Please, don't report problems here. Instead, open a new issue and link it to this one.
Let's use this discussion for suggestions and improvement ideas. We would love to hear from you!
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Overview
Hot Module Replacement (HMR) is a feature provided by webpack. It makes it possible to replace modules in a bundled application while the application is running.
Integrating HMR within NativeScript will improve the development experience by:
Design
Implementation details and motivation of the feature can be found in its design document.
Tasks
NativeScript 5.0
HotModuleReplacementplugin withnativescript-dev-webpack.reloadPageon changes in JS/TS-only applications.tns preview.hmrflag in the {N}-CLI section.After NativeScript 5.0
The possible improvements are explained in the design doc.
app.(css|scss): [HMR] Apply changes in application styles at runtime #6645main-page.(css|scss), etc.: [HMR] Apply changes in page styles at runtime #6953Page, butTabView,SideDrawer, etc.Known issues
./ sync recursive...item in the bundle which is not being accepted, so this will make the CLI restart the app to apply the change[HMR] Changes in plugin do NOT apply in angular projects nativescript-dev-webpack#914
Contributing
HMR provides us with so many possibilities!
If you want to work on a task from the list, tell us and we will do our best to help you!
If you have another great idea on how to make HMR even cooler, share it in the comments!
Discussion
Please, don't report problems here. Instead, open a new issue and link it to this one.
Let's use this discussion for suggestions and improvement ideas. We would love to hear from you!
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.