-
Notifications
You must be signed in to change notification settings - Fork 485
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
Refactor deep rxjs imports and use named define #608
Conversation
This PR makes `@auth0/angular-jwt` usable with Bazel. The fix consists of two parts: 1. Update of deep rxjs imports. They don't work with Bazel but also increase the final bundle size unnecessary. 2. Use named define for the library.
src/jwt.interceptor.ts
Outdated
@@ -7,8 +7,7 @@ import { | |||
} from '@angular/common/http'; | |||
import { JwtHelperService } from './jwthelper.service'; | |||
import { JWT_OPTIONS } from './jwtoptions.token'; | |||
import { Observable } from "rxjs/internal/Observable"; | |||
import { from } from "rxjs/internal/observable/from"; | |||
import { from, Observable } from "rxjs"; |
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.
Should have single quotes?
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.
Just reused the current style.
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.
Would be good to have single quotes, but I'm going to do a Prettier pass on it before the next release anyway.
src/jwt.interceptor.ts
Outdated
@@ -7,8 +7,7 @@ import { | |||
} from '@angular/common/http'; | |||
import { JwtHelperService } from './jwthelper.service'; | |||
import { JWT_OPTIONS } from './jwtoptions.token'; | |||
import { Observable } from "rxjs/internal/Observable"; | |||
import { from } from "rxjs/internal/observable/from"; | |||
import { from, Observable } from "rxjs"; |
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.
Would be good to have single quotes, but I'm going to do a Prettier pass on it before the next release anyway.
Changes
This PR makes
@auth0/angular-jwt
usable with Bazel. The fix consistsof two parts:
increase the final bundle size unnecessary.
References
angular/angular-bazel-example#463
Checklist