Skip to content

Conversation

@developit
Copy link
Owner

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.

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);
Copy link
Collaborator

Choose a reason for hiding this comment

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

does this affect anything?

Copy link
Owner Author

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'));
Copy link
Collaborator

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 🤔

Copy link
Owner Author

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),
() => {},
Copy link
Collaborator

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?

Copy link
Owner Author

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

@ForsakenHarmony
Copy link
Collaborator

bors r+

bors bot pushed a commit that referenced this pull request Mar 5, 2020
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
Copy link
Contributor

bors bot commented Mar 5, 2020

Build failed

@ForsakenHarmony
Copy link
Collaborator

bors retry

bors bot pushed a commit that referenced this pull request Mar 5, 2020
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
Copy link
Contributor

bors bot commented Mar 5, 2020

Build failed

@ForsakenHarmony
Copy link
Collaborator

bors retry

bors bot pushed a commit that referenced this pull request Mar 12, 2020
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.
@ForsakenHarmony
Copy link
Collaborator

bors retry

bors bot pushed a commit that referenced this pull request Mar 12, 2020
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.
@ForsakenHarmony ForsakenHarmony merged commit 2dd4afe into master Mar 12, 2020
@bors bors bot deleted the fix-babel-custom branch March 12, 2020 19:36
This was linked to issues Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants