Skip to content

fix(bundling) Remove parse5 dependency. #660

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

Merged
merged 1 commit into from
Feb 8, 2017
Merged

Conversation

hdeshev
Copy link
Contributor

@hdeshev hdeshev commented Feb 7, 2017

This builds on the work done in #652 (and obsoletes it).

Delete the parse5_adapter module. Create a dummy DOM adapter and
register it for that code (cough @angular/router cough) that
logs diagnostic messages via the DOM adapter.

Register the DOM adapter dynamically, if and only if you can
discover @angular/platform-browser.

Hopefully one day @angular/router and @angular/http won't import
@angular/platform-browser and we can strip it from the release
bundle completely.

NOTE: Bundled production builds that have router tracing enabled will continue to crash. That seems like the reasonable tradeoff with removing the @angular/platform-browser dependency. Router tracing should be disabled in production builds anyway.

Delete the parse5_adapter module. Create a dummy DOM adapter and
register it for that code (*cough* @angular/router *cough*) that
logs diagnostic messages via the DOM adapter.

Register the DOM adapter dynamically, if and only if you can
discover @angular/platform-browser.

Hopefully one day @angular/router and @angular/http won't import
@angular/platform-browser and we can strip it from the release
bundle completely.
@NathanWalker
Copy link
Contributor

@hdeshev @vakrilov does this mean we won't have to use .html for view templates any longer and could just use .xml?

@hdeshev
Copy link
Contributor Author

hdeshev commented Feb 10, 2017

@NathanWalker No. .html as usual -- the DOM adapter wasn't being used (most of the time) anyway.

@NathanWalker
Copy link
Contributor

Ok good to know - just checking, thanks 👍

@sis0k0 sis0k0 deleted the hdeshev/no-parse5 branch August 3, 2017 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants