From 0375de2edbb4c72445dd056831ccee14ef31335b Mon Sep 17 00:00:00 2001 From: Vasil Chimev Date: Mon, 11 Feb 2019 13:31:27 +0200 Subject: [PATCH 1/2] docs: breaking changes/migration to 0.20.0 --- CHANGELOG.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 740be1b0..8842832c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,12 +13,18 @@ * **Angular:** apply changes in application styles at runtime with HMR ([#748](https://github.com/NativeScript/nativescript-dev-webpack/issues/748)) ([fe4abfb](https://github.com/NativeScript/nativescript-dev-webpack/commit/fe4abfb)) * **snapshot:** the parameters passed to mksnapshot are now retrieved… ([#789](https://github.com/NativeScript/nativescript-dev-webpack/issues/789)) ([cb68dac](https://github.com/NativeScript/nativescript-dev-webpack/commit/cb68dac)) - -### Migration +### BREAKING CHANGES This version enables *Hot Module Replacement* feature in NativeScript Angular projects by default. There is no need to manually accept *hot* changes and you could safely remove the `module["hot"]` code inside your entry module. +### Migration + +Steps: +- update the plugin by `npm i -D nativescript-dev-webpack@0.20.0` +- update the `webpack.config.js` file by `./node_modules/.bin/update-ns-webpack --configs --deps` +- remove any `module["hot"]` code inside your entry module. + Please, refer to [this](https://github.com/NativeScript/nativescript-angular/wiki/NativeScript-5.2-HMR-with-Angular) wiki page for detailed information. From ba557c51dee94111eeefb97944f19f6df8a37760 Mon Sep 17 00:00:00 2001 From: Vasil Chimev Date: Mon, 11 Feb 2019 15:54:56 +0200 Subject: [PATCH 2/2] docs: update breaking changes/migration (#795) --- CHANGELOG.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8842832c..99a7a60d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,15 +15,15 @@ ### BREAKING CHANGES -This version enables *Hot Module Replacement* feature in NativeScript Angular projects by default. -There is no need to manually accept *hot* changes and you could safely remove the `module["hot"]` code inside your entry module. +* Hot Module Replacement in NativeScript Angular Project -### Migration +This version enables the *Hot Module Replacement* feature in NativeScript Angular projects by default. + +So far it was required to add a snippet to enable HMR. With this release, you have to __remove__ any previous `module["hot"]` related code so HMR can work out of the box. -Steps: -- update the plugin by `npm i -D nativescript-dev-webpack@0.20.0` -- update the `webpack.config.js` file by `./node_modules/.bin/update-ns-webpack --configs --deps` -- remove any `module["hot"]` code inside your entry module. +However, if you want to continue handling *hot* changes manually, follow [these](https://github.com/NativeScript/nativescript-angular/wiki/NativeScript-5.2-HMR-with-Angular#how-to-manually-enable-hmr-in-nativescript-angular-projects-with-n-52) instructions. + +### Migration Please, refer to [this](https://github.com/NativeScript/nativescript-angular/wiki/NativeScript-5.2-HMR-with-Angular) wiki page for detailed information.