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

When a comment with the word "global" is present in an entry file, the optional chain operator throws an error #59

Open
paceaux opened this issue Jun 10, 2024 · 0 comments

Comments

@paceaux
Copy link

paceaux commented Jun 10, 2024

Please see this repo: https://github.com/paceaux/rollup-plugin-node-globals-error

When an entry file contains the word "global" anywhere in a comment in the entry file, then the optional chain operator ?. throws a syntax error.

It does not matter if it's a // or /**/ type of comment. it does not matter if the word is the only part of the comment, or if it's a substring (i.e. global vs import 'globals/utilities/'.

If the word "global" exists anywhere in a comment, and so does an optional chain operator, there willl be a syntax error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant