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
fixing regexp #19065
fixing regexp #19065
Conversation
@@ -31,8 +31,7 @@ const gulp = $$.help(require('gulp')); | |||
exports.createModuleCompatibleES5Bundle = function(src) { | |||
return gulp.src('dist/' + src) | |||
.pipe($$.sourcemaps.init({loadMaps: true})) | |||
.pipe($$.rename(src.replace(/\.js$/, '-module.js'))) | |||
.pipe($$.regexpSourcemaps(/(global\?global:\w*})\(this\)/, '$1(self)', 'module-global')) | |||
.pipe($$.regexpSourcemaps(/(window.global\?window.global:\w*)this/, '$1self', 'module-global')) |
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.
just for my own knowledge how is the regexp name used (what is its usefulness)?
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.
@jridgewell , i wanted to ask that too
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.
I think it's the filename this new code will be associated with.
@googlebot are you stuck? |
* fixing regexp * adding shadow v0 bundle
IIUC the change is required due to the new closure compiler declares global?global:this in a different way