Skip to content
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

undefined does not serialize with broccoli-babel-transpiler #886

Merged
merged 2 commits into from
Jul 2, 2021

Conversation

thoov
Copy link
Collaborator

@thoov thoov commented Jul 2, 2021

When broccoli-babel-transpiler tries to determine if a plugin is serializable it checks for certain types.

If the value is undefined it is not serializable and thus not parallelizable. Since we are just checking for truthyness of the appPackageRoot value we can instead use an empty string. This also satisfies the babel type which is string | undefined.

This comes up in production builds as appPackageRoot does not get set

When broccoli-babel-transpiler tries to determine in a plugin is
serializable it checks for certain types:
https://github.com/babel/broccoli-babel-transpiler/blob/416732dd5d57b9f29dad7afd7f7cae76f0ac1606/lib/parallel-api.js#L45-L61.

If the value is undefined it is not serializable and thus not
parallelizable. Since we are just checking for truthyness of the appPackageRoot
value we can instead use an empty string. This also satisfies the babel
type which is string | undefined.
@rwjblue rwjblue added the bug Something isn't working label Jul 2, 2021
@thoov thoov merged commit 81ca52f into embroider-build:master Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants