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

Check require.main for null before getting require.main.filename #2179

Closed
wants to merge 2 commits into from

Conversation

jamesnw
Copy link
Contributor

@jamesnw jamesnw commented Feb 18, 2024

Addresses #2178. This allows Sass in ESM to throw with the correct error message regarding needing to set an entry point directory, instead of throwing with reading "filename" of undefined.

@jamesnw
Copy link
Contributor Author

jamesnw commented Feb 19, 2024

For reasons not yet clear, this seems to be breaking the existing CommonJS functionality. Fixed.

@jamesnw
Copy link
Contributor Author

jamesnw commented Feb 21, 2024

Superceded by #2181

@jamesnw jamesnw closed this Feb 21, 2024
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.

None yet

1 participant