Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

fix: Package Error stack rewriting as a separate bundle. #770

Merged
merged 2 commits into from
May 3, 2017

Conversation

mhevery
Copy link
Contributor

@mhevery mhevery commented May 2, 2017

No description provided.

@mhevery mhevery requested a review from JiaLiPassion May 2, 2017 19:19
__Zone_disable_toString = true;
__Zone_disable_blocking = true;
__Zone_disable_PromiseRejectionEvent = true;
</script>
Copy link
Collaborator

Choose a reason for hiding this comment

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

@mhevery , will we use those flags to decide which modules to load?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is the idea for now. Do you have thoughts or concerns?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@mhevery , only the names, should we named those flags as __zone_symbol__disable_toString?

@@ -179,6 +187,8 @@ gulp.task('build', [
'build/zone.js',
'build/zone.js.d.ts',
'build/zone.min.js',
'build/zone-error.js',
Copy link
Collaborator

Choose a reason for hiding this comment

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

@mhevery , got it, I agree that to separate the error-rewrite to a stand alone module!
I will modify the document to decribe how to load zone.js and other stand alone modules(now we have error-rewrite and other non-standard api modules). Just like the flags in add in profiling.html, we may have other stand alone modules (toString, geolocation...).

If we have too many small modules, should we provide some predefined module collections for users to load?
such as standard browser set, standard node set, standard electron set, basic set and so on...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes that is my thinking, but i am not sure we should do this just yet. Perhaps disabling things may be good enough for now?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@mhevery , got it!

@mhevery mhevery merged commit b5e33fd into angular:master May 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants