Skip to content

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!

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