-
Notifications
You must be signed in to change notification settings - Fork 410
fix: Package Error stack rewriting as a separate bundle. #770
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,6 +91,14 @@ gulp.task('build/zone.min.js', ['compile-esm'], function(cb) { | |
return generateScript('./lib/browser/rollup-main.ts', 'zone.min.js', true, cb); | ||
}); | ||
|
||
gulp.task('build/zone-error.js', ['compile-esm'], function(cb) { | ||
return generateScript('./lib/common/error-rewrite.ts', 'zone-error.js', false, cb); | ||
}); | ||
|
||
gulp.task('build/zone-error.min.js', ['compile-esm'], function(cb) { | ||
return generateScript('./lib/common/error-rewrite.ts', 'zone-error.min.js', true, cb); | ||
}); | ||
|
||
gulp.task('build/webapis-media-query.js', ['compile-esm'], function(cb) { | ||
return generateScript('./lib/browser/webapis-media-query.ts', 'webapis-media-query.js', false, cb); | ||
}); | ||
|
@@ -179,6 +187,8 @@ gulp.task('build', [ | |
'build/zone.js', | ||
'build/zone.js.d.ts', | ||
'build/zone.min.js', | ||
'build/zone-error.js', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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! If we have too many small modules, should we provide some predefined module collections for users to load? There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mhevery , got it! |
||
'build/zone-error.min.js', | ||
'build/zone-node.js', | ||
'build/webapis-media-query.js', | ||
'build/webapis-media-query.min.js', | ||
|
@@ -293,4 +303,4 @@ gulp.task('promisetest', ['build/zone-node.js'], (cb) => { | |
cb(err); | ||
} | ||
}); | ||
}); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,4 @@ | |
|
||
import '../zone'; | ||
import '../common/promise'; | ||
import '../common/error-rewrite'; | ||
import './browser'; |
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.
@mhevery , will we use those flags to decide which modules to load?
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.
That is the idea for now. Do you have thoughts or concerns?
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.
@mhevery , only the names, should we named those flags as __zone_symbol__disable_toString?