fix: Package Error stack rewriting as a separate bundle.#770
fix: Package Error stack rewriting as a separate bundle.#770mhevery merged 2 commits intoangular:masterfrom
Conversation
| __Zone_disable_toString = true; | ||
| __Zone_disable_blocking = true; | ||
| __Zone_disable_PromiseRejectionEvent = true; | ||
| </script> |
There was a problem hiding this comment.
@mhevery , will we use those flags to decide which modules to load?
There was a problem hiding this comment.
That is the idea for now. Do you have thoughts or concerns?
There was a problem hiding this comment.
@mhevery , only the names, should we named those flags as __zone_symbol__disable_toString?
| 'build/zone.js', | ||
| 'build/zone.js.d.ts', | ||
| 'build/zone.min.js', | ||
| 'build/zone-error.js', |
There was a problem hiding this comment.
@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...
There was a problem hiding this comment.
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?
No description provided.