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

Loader to handle interop when importing CJS from ESM #19

Open
make-github-pseudonymous-again opened this issue Mar 7, 2024 · 0 comments

Comments

@make-github-pseudonymous-again

When CJS is imported from ESM, only static properties are available for named imports. Properties defined using Object.defineProperty are only available through module.default.property. Would it make sense to create a loader that handles CJS imports differently? Is that at all possible? IIRC only ESM imports are handled by custom loaders.

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