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

Importing named exports from CJS .ts files in .mts files does not work #679

Open
4 of 6 tasks
sapphi-red opened this issue Nov 28, 2024 · 0 comments
Open
4 of 6 tasks
Labels
bug Something isn't working pending triage

Comments

@sapphi-red
Copy link

Acknowledgements

  • I read the documentation and searched existing issues to avoid duplicates
  • I understand this is a bug tracker and anything other than a proven bug will be closed
  • I understand this is a free project and relies on community contributions
  • I read and understood the Contribution guide

Minimal reproduction URL

https://stackblitz.com/edit/node-nfzer8?file=index.mts

Problem & expected behavior (under 200 words)

This works with Node 20.18.0. This does not work with Node 18.20.4 and 22.11.0. I'm not sure if you expect this to work or not to work.

Bugs are expected to be fixed by those affected by it

  • I'm interested in working on this issue

Compensating engineering work will speed up resolution and support the project

  • I'm willing to offer $10 for financial support
@sapphi-red sapphi-red added bug Something isn't working pending triage labels Nov 28, 2024
github-merge-queue bot pushed a commit to rolldown/rolldown that referenced this issue Nov 28, 2024
<!-- Thank you for contributing! -->

### Description

The script did not work in Node 22 due to
privatenumber/tsx#679.

<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending triage
Projects
None yet
Development

No branches or pull requests

1 participant