Skip to content

Conversation

jeffsee55
Copy link
Contributor

@jeffsee55 jeffsee55 commented Aug 1, 2025

Note: .mts files aren't currently supported by the node builder so that one isn't as easy to fix. For now, just add support for .mjs

@jeffsee55 jeffsee55 requested review from Kikobeats and a team as code owners August 1, 2025 22:52
Copy link

changeset-bot bot commented Aug 1, 2025

🦋 Changeset detected

Latest commit: a785e2c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@vercel/frameworks Patch
@vercel/hono Patch
@vercel/node Patch
vercel Patch
@vercel/fs-detectors Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jeffsee55 jeffsee55 added this pull request to the merge queue Aug 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 2, 2025
@jeffsee55 jeffsee55 added this pull request to the merge queue Aug 2, 2025
Merged via the queue into main with commit b1993ee Aug 2, 2025
151 checks passed
@jeffsee55 jeffsee55 deleted the fix-mjs-for-hono branch August 2, 2025 04:59
github-merge-queue bot pushed a commit that referenced this pull request Aug 2, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## vercel@44.7.0

### Minor Changes

- Make framework detection text prettier
([#13654](#13654))

### Patch Changes

- Improve non-debug error log for user fetch
([#13657](#13657))

- Updated dependencies
\[[`e9ef3b82c7093ac750173fc2a2d2747ba25f6c78`](e9ef3b8),
[`b1993ee3af72d12859bbc621744b687fbc968a1b`](b1993ee)]:
    -   @vercel/next@4.11.0
    -   @vercel/hono@0.0.8
    -   @vercel/node@5.3.10

## @vercel/next@4.11.0

### Minor Changes

- Improve fallback root params handling with hasFallbackRootParams flag
([#13653](#13653))

- Add hasFallbackRootParams flag to RoutesManifestRoute type for
simplified route regex generation
- Update route handling logic to conditionally apply fallback root
params processing
- Enhance prerender manifest structure with fallback root params support

## @vercel/frameworks@3.7.6

### Patch Changes

- Fix issue where .mjs files weren't transpiled properly for Hono
([#13658](#13658))

## @vercel/fs-detectors@5.4.12

### Patch Changes

- Updated dependencies
\[[`b1993ee3af72d12859bbc621744b687fbc968a1b`](b1993ee)]:
    -   @vercel/frameworks@3.7.6

## @vercel/hono@0.0.8

### Patch Changes

- Fix issue where .mjs files weren't transpiled properly for Hono
([#13658](#13658))

- Updated dependencies
\[[`b1993ee3af72d12859bbc621744b687fbc968a1b`](b1993ee)]:
    -   @vercel/node@5.3.10

## @vercel/node@5.3.10

### Patch Changes

- Fix issue where .mjs files weren't transpiled properly for Hono
([#13658](#13658))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
jeffsee55 added a commit that referenced this pull request Sep 2, 2025
When theres' no `tsconfig` & no `"type": "module"` we should still
compile to ESM. The previous
[PR](#13658) was just for `.ts`
files, which may compile to CJS if there's no `"type": "module"`, but
for `.mts` we should never do that.

EDIT: this PR was dramatically simplified to just use nodenext when no
`tsconfig.json` is found

---------

Co-authored-by: Steven <steven@ceriously.com>
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
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.

2 participants