-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
feat: show error when accessing variables not exposed in CJS build #18649
feat: show error when accessing variables not exposed in CJS build #18649
Conversation
Co-authored-by: Bjorn Lu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we can look into a Rollup plugin or a post-build script that ensures the exports are properly implemented in both ESM and CJS, but I think that can be done later.
Added that check (fbcfc1c) 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Description
No error happened when accessing variables not exposed in CJS build. This PR adds an error for that, so the user can know what is needed to do.