nativescript-angular
uses a fork of the zone.js
package in order to work around incompatibilities between node, browser, and mobile implementations.
The fork resides at https://github.com/NativeScript/zone.js in the zone-nativescript
branch. It adds a separate lib/nativescript/nativescript.ts
entry point that is used to generate a new bundle: zone-nativescript.js
.
To upgrade to a newer release of zone.js
:
- Identify the upgrade target -- most likely a release tag.
- Rebase the
zone-nativescript
branch on top of the upgrade target. - Rebuild:
gulp build
- Run the node-based smoke tests:
gulp test/nativescript
- Run the browser tests:
node_modules/.bin/karma start karma.conf.js --single-run
(You need to run nodetest/ws-server.js
in a separate console first) - Commit
zone-nativescript.js
, drop the previouszone-nativescript.js
commit from the branch. Force push the newzone-nativescript
branch to GitHub. - Update your copy of
nativescript-angular/zone.js/dist/zone-nativescript.js
with the bundle you just built.