-
Notifications
You must be signed in to change notification settings - Fork 360
Fix babel cache bleed #570
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
Conversation
| const externalPredicate = new RegExp(`^(${external.join('|')})($|/)`); | ||
| const externalTest = | ||
| external.length === 0 ? () => false : id => externalPredicate.test(id); | ||
| external.length === 0 ? id => false : id => externalPredicate.test(id); |
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.
does this affect anything?
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.
no, just typescript was yelling at me about it.
| return getSizeInfo(code, fileName, options.raw); | ||
| } | ||
| }), | ||
| ).then(results => results.filter(Boolean).join('\n')); |
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 guess the implicit undefined return will work 🤔
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.
yeah cause we cast to boolean on L639. this was another TS warning lol
| fs.writeFile( | ||
| getNameCachePath(), | ||
| JSON.stringify(nameCache, null, 2), | ||
| () => {}, |
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.
same as above, does this change the behavior?
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.
same deal, was a typescript warning
|
bors r+ |
Instantiating babel.custom() separately for each output should fix #568, which I believe is caused by cached configuration bleeding from `cjs` into other output targets.
Build failed |
|
bors retry |
Instantiating babel.custom() separately for each output should fix #568, which I believe is caused by cached configuration bleeding from `cjs` into other output targets.
Build failed |
|
bors retry |
Instantiating babel.custom() separately for each output should fix #568, which I believe is caused by cached configuration bleeding from `cjs` into other output targets.
|
bors retry |
Instantiating babel.custom() separately for each output should fix #568, which I believe is caused by cached configuration bleeding from `cjs` into other output targets.
Instantiating babel.custom() separately for each output should fix #568, which I believe is caused by cached configuration bleeding from
cjsinto other output targets.