-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
Error with browserslist and optional chaining/nullish-coalescing #1747
Labels
Comments
This is an issue in Webpack v4, without any real solution for the time being: webpack/webpack#10227 Essentially, as you've raised the browserlist targets so that optional chaining isn't transpiled out, Webpack (or rather, Acorn) ends up attempting to parse them which it cannot. |
Merged
Closing, fixed in v4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the current behaviour?
Adding a broswerslist config like this causes errors on optional chaining or nullish coalescing syntax
Steps to Reproduce
Steps to reproduce the behavior:
npx preact-cli create typescript <project>
npm run build
The text was updated successfully, but these errors were encountered: