Skip to content

Commit 31832e0

Browse files
author
vakrilov
committed
docs: add known issues to ivy md
1 parent ce75ea2 commit 31832e0

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

build-for-ivy.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
Steps for testing:
1+
## Steps for testing:
22

3-
- cd nativescript-angular
4-
- npm run pack
5-
- cd yourProj
6-
- npm i your nativescript-angular tgz (NOTE: tgz is in the `dist` folder)
3+
- cd `nativescript-angular` and run `npm run pack`
4+
- cd yourProj and install the tgz : `npm i <your nativescript-angular tgz>` (NOTE: tgz is in the `dist` folder)
75
- install `next` versions of all Angular deps
86
- edit `node_modules/@angular/compiler-cli/src/ngcc/src/packages/dependency_resolver.js` in order to comment out the following code:
7+
```
98
// This entry point has dependencies that are missing
109
// so remove it from the graph.
1110
// removeNodes(entryPoint, Array.from(missing)); <--- this line
12-
11+
```
1312
- enable Ivy in the tsconfig with:
13+
```
1414
"angularCompilerOptions": {
1515
"enableIvy": true,
1616
"allowEmptyCodegenFiles": true,
1717
},
18-
- run ./node_modules/.bin/ivy-ngcc
18+
```
19+
- run `./node_modules/.bin/ivy-ngcc`
1920

2021
- configure webpack to read `fesm2015` entry-points whem loading package.json:
2122
```
@@ -29,8 +30,15 @@ resolve: {
2930
- edit `fesm2015/nativescript-angular.js` in order to remove the duplicate `_0_Template`
3031
- edit `fesm2015/nativescript-angular.js` in order to move `import 'tns-core-modules/globals'` on the first line (before `import * as ɵngcc0 from '@angular/core';`)
3132

32-
- fix the nativescript-angular imports in your app and the AOT transformer:
33+
- fix the `nativescript-angular` imports in your app and the AOT transformer:
3334
- edit `/Users/tachev/Work/Test/ngIvy/node_modules/nativescript-dev-webpack/transformers/ns-replace-bootstrap.js` and set ...transformers_1.insertStarImport(sourceFile, idPlatformNativeScript, 'nativescript-angular', firstNode, true),
3435
- edit your main.ts, app.module.ts and everywhere else in your app in order to import from `nativescript-angular'` instead of the deep imports
3536

36-
- tns run android/ios --bundle --env.aot
37+
- `tns run android/ios --bundle --env.aot`
38+
39+
40+
## Known Issues:
41+
42+
- Currently the ./bin scripts are not packed in the npm package
43+
- Zone.js distribution is modified to be TS compilable
44+
- There are no secondary (ex. `nativescript-angular/router`) entry points for `nativescript-angular`, which is a breaking change

0 commit comments

Comments
 (0)