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 #4010: allow define key to start with import. #4013

Closed
wants to merge 1 commit into from

Conversation

sapphi-red
Copy link
Contributor

fixes #4010
fixes #4012

Added import.* handling for ParseGlobalName function to allow import.* to be used in define / pure options.

Comment on lines +27 to +28
result = append(result, lexer.Identifier.String)
lexer.Expect(js_lexer.TIdentifier)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't strictly limit to import.meta here. (import.foo is allowed and import['meta'] is not allowed)

@sapphi-red
Copy link
Contributor Author

Thanks for the release!

@sapphi-red sapphi-red deleted the fix/4010-define-import branch December 22, 2024 07:41
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

Successfully merging this pull request may close these issues.

TSUP builds failing after upgrading esbuild to 0.24.1 ERROR: Expected identifier but found "import"
2 participants