Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.
/frameworkPublic archive

fix(nuxi, kit): enable esmResolve flag for jiti - #6356

Merged
pi0 merged 1 commit into
mainfrom
fix/jiti-esm
Aug 4, 2022
Merged

fix(nuxi, kit): enable esmResolve flag for jiti#6356
pi0 merged 1 commit into
mainfrom
fix/jiti-esm

Conversation

@pi0

@pi0pi0 commented Aug 4, 2022

Copy link
Copy Markdown
Member

🔗 Linked issue

Related: #6340, unjs/unctx#23, unjs/unctx#25

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 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)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Some dependencies like estree-walker, are not only esm-only but only use exports.import field in package.json. This makes sure they are broken unless using esm native resolution!

We introduced an experimental flag few months ago for jiti to enable esm resolution and handle such package. It is already enabled for c12 and framework repo. This PR enabled it for kit utils as well.

📝 Checklist

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

@netlify

netlifyBot commented Aug 4, 2022

Copy link
Copy Markdown

Deploy Preview for nuxt3-docs canceled.

NameLink
🔨 Latest commit943db63
🔍 Latest deploy loghttps://app.netlify.com/sites/nuxt3-docs/deploys/62ebc21b341d1f0008bdc623

@pi0pi0 changed the title fix(nuxi, kit): enable esmResolve flag for `jitifix(nuxi, kit): enable esmResolve flag for jitiAug 4, 2022
@pi0
pi0 merged commit e3534bc into mainAug 4, 2022
@pi0
pi0 deleted the fix/jiti-esm branch August 4, 2022 13:22
@pi0pi0 mentioned this pull request Aug 5, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@pi0@danielroe