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-nativescriptbranch 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.jsin a separate console first) - Commit
zone-nativescript.js, drop the previouszone-nativescript.jscommit from the branch. Force push the newzone-nativescriptbranch to GitHub. - Update your copy of
nativescript-angular/zone.js/dist/zone-nativescript.jswith the bundle you just built.