Skip to content

fix: unify import paths for Nitro runtime modules #3253

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

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from

Conversation

productdevbook
Copy link
Contributor

@productdevbook productdevbook commented Mar 25, 2025

πŸ”— Linked issue

wait: unjs/mkdist#272

cc: #3246 Continuation of the work here

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme, or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@productdevbook productdevbook requested a review from pi0 as a code owner March 25, 2025 02:49
@productdevbook
Copy link
Contributor Author

productdevbook commented Mar 25, 2025

we have a problem, unbuild does not add .mts in runtime there is a problem on the unbuild side. So there is no access to types and no reading of types.

CleanShot 2025-03-25 at 12 12 44@2x

@@ -58,19 +58,19 @@ export async function resolveImportsOptions(options: NitroOptions) {
function getNitroImportsPreset(): Preset[] {
return [
{
from: "nitro/runtime/internal/app",
from: "nitro/runtime/internal",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be able to import them from nitro/runtime

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will look into it, it would be nice to fix the bug in the unbuild above. I think it would be good to go through this pr after that.

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