HMR (Hot Module Replacement) is a feature that was introduced in NativeScript 5.3. With NativeScript 7 all
@nativescript/webpack dependencies were updated to their latest versions, including
copy-webpack-plugin which contained a significant change that interfered with HMR in NativeScript apps.
Many in the community have asked for a resolution and we are providing a major version bump prior to the Nativescript 8.0 release (scheduled for Q1 2021) so you can get HMR wroking again in the meantime. As previously announced, Nativescript 8.0 will bring webpack5 compatibility and improved HMR.
This is a major version bump as it does contain a version change to the
copy-webpack-plugin which is requires changes in the
webpack.config.js, thus considered a breaking change.
webpack.config.js(you can apply your customizations back in a moment)
npm install(this will create a fresh
Note: If you have many customizations in your
webpack.config.jsyou can skip deleting your config, and manually update the
CopyWebpackPluginoptions based on this diff.
This is a minor version update that contains several bug fixes as well as some improvements to iOS SafeArea handling, macro task scheduling to match the DOM event loop more closely.
This version contains all the latest typings for iOS 14.3. There were a ton of new api's! You can explore some of the new additions via Apple's documentation overview here as well as browsing the PR changeset including all the new api typings here.
7.1.0 & 6.5.4
XCode 12.3 greeted us with another change that caused projects to stop building. A fix has been implemented in the runtimes!
We have released the fixes for all the runtimes:
@nativescript/[email protected](same as
tns-iosthe JSC runtime, tagged as
We have released an official Vue and TypeScript template
The new template has been added to the CLI so you can easily create a new project with
ns create myVueApp --vue --ts
We have released NativeScript CLI 7.1.0 with some nice features:
ns create myVueApp --vue --ts)
ns fontscommand to print required css to use a custom font - give it a try!
$ myCoolApp >>> ns fonts ┌────────────────────┬──────────────────────────────────────────────────────────────────────────┐ │ Font │ CSS Properties │ │ fa-brands-400.ttf │ font-family: "Font Awesome 5 Brands", "fa-brands-400"; font-weight: 400; │ │ fa-regular-400.ttf │ font-family: "Font Awesome 5 Free", "fa-regular-400"; font-weight: 400; │ │ fa-solid-900.ttf │ font-family: "Font Awesome 5 Free", "fa-solid-900"; font-weight: 400; │ └────────────────────┴──────────────────────────────────────────────────────────────────────────┘
We hope everyone is enjoying the holidays!
The NativeScript team wishes you a happy New Year. See you in 2021!