Skip to content
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

Merged
merged 2 commits into from
Jun 27, 2019

Conversation

mgechev
Copy link
Contributor

@mgechev mgechev commented Jun 25, 2019

Changes

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.

References

angular/angular-bazel-example#463

Checklist

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.
@@ -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";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should have single quotes?

Copy link
Contributor Author

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.

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.

@stevehobbsdev stevehobbsdev added the tiny Tiny review label Jun 26, 2019
@@ -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";

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.

@stevehobbsdev stevehobbsdev self-assigned this Jun 26, 2019
@stevehobbsdev stevehobbsdev added this to the 2.1.1 milestone Jun 26, 2019
@stevehobbsdev stevehobbsdev merged commit e355bc7 into auth0:master Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tiny Tiny review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants