-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide an Ivy Distribution #281
Conversation
@@ -9,7 +9,7 @@ | |||
"start:local:playground": "ng serve --configuration=local", | |||
"prebuild": "npm run update-useragent", | |||
"build": "ng build && npm run build:schematics", | |||
"build:prod": "ng build --prod && npm run build:schematics", | |||
"build:prod": "ng build --configuration production && npm run build:schematics", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed this command as it was giving a warning. Not related to Ivy.
@@ -4,5 +4,5 @@ | |||
"lib": { | |||
"entryFile": "src/public-api.ts" | |||
}, | |||
"whitelistedNonPeerDependencies": ["tslib", "@auth0/auth0-spa-js"] | |||
"allowedNonPeerDependencies": ["tslib", "@auth0/auth0-spa-js"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed this property as it was giving a warning. Not related to Ivy.
"@angular/router": ">=9 <=13" | ||
"@angular/common": ">=11 <=13", | ||
"@angular/core": ">=11 <=13", | ||
"@angular/router": ">=11 <=13" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dropping support for Angular 9 and 10, as they aren't supported anymore.
@@ -2,6 +2,6 @@ | |||
{ | |||
"extends": "./tsconfig.lib.json", | |||
"angularCompilerOptions": { | |||
"enableIvy": false | |||
"compilationMode": "partial" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use Ivy for compilation
Description
Compiles the Library without disabling Ivy. Installing our SDK in Angular13 generates a warning because of the fact that we do not compile using Ivy. This was done previously to support Angular 8 up until 10. However, Angular itself does not support any version prior to 11, so this PR also bumps our minimal peer dependency version to 11, ensuring we can compile using Ivy.
Theoretically this is a breaking change, as it breaks support for Angular 9 and 10. However as those versions of Angular aren't supported by Angular itself, it's worth considering releasing this as a minor.
References
Closes #255
Checklist
master