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

fix(js-toolkit): support spread operator when bundling modules #569

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

izaera
Copy link
Member

@izaera izaera commented Jun 4, 2021

Fixes #565

Tested locally with the same project I used to reproduce it (an empty shared bundle with just recoil dependency)

@bryceosterhaus
Copy link
Member

LGTM!

Are there any other common syntaxes in modern browsers that we might want to add support for? I didn't realize some popular packages like this were starting to not transpile spread operators.

@izaera
Copy link
Member Author

izaera commented Jun 7, 2021

🤔 Not sure. Probably fat arrow... In general, AST parsers are lenient with most of the new features because they fit in the older syntax scheme, but some newer things that are not backward compatible (like this one) may make it fail.

I will investigate fat arrow too 👍

@izaera
Copy link
Member Author

izaera commented Jun 7, 2021

Fat arrow works, so going to merge because I cannot think of any other risky construct now 🤔

@izaera izaera merged commit 7b8a93b into liferay:master Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Liferay Bundler/Babel doesn't understand the spread-operator
2 participants