You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
hyf0
changed the title
Failed to import implict cjs module in .mts file
Failed to import implict cjs module with .ts extension in .mts file
Nov 26, 2024
<!-- Thank you for contributing! -->
### Description
close#3407. The error
happened because the rolldown package added `type: module` at
#3376, it will make typing
check failed at `node16`, ref
https://www.typescriptlang.org/docs/handbook/modules/reference.html#module-format-detection.
The `type: module` added by using oxc-node build, if changed build file
to `build.mts` will caused error at
oxc-project/oxc-node#45. So i revert it to
`tsx` build. Here also add `build-types-check` to avoid regression.
<!-- Please insert your description here and provide especially info
about the "what" this PR is solving -->
In https://github.com/rolldown/rolldown/blob/0535a45140334005d359aa8f11bf9c1acd7c3e52/packages/rolldown/package.json#L65
Replace
tsx
withoxnode
The text was updated successfully, but these errors were encountered: