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

perf(nuxt): import defineNuxtConfig from nuxt/config - #7485

Merged
pi0 merged 3 commits into
mainfrom
perf/config2
Sep 14, 2022
Merged

perf(nuxt): import defineNuxtConfig from nuxt/config#7485
pi0 merged 3 commits into
mainfrom
perf/config2

Conversation

@pi0

@pi0pi0 commented Sep 13, 2022

Copy link
Copy Markdown
Member

🔗 Linked issue

resolvesnuxt/nuxt#14821

❓ 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

This PR introduces new nuxt/config subpath export with CJS+MJS build to avoid jiti extra transformations.

Also using jiti aliases, nuxt is aliases to nuxt/config within nuxt.config file. This way we transparently introduce this enhancement to all nuxt 3 users.defineNuxtConfig from nuxt is deprecated. Pending docs/examples update to after release and try. Alias seemed little bit hacky to do and causing potential breaking changes.

📝 Checklist

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

@netlify

netlifyBot commented Sep 13, 2022

Copy link
Copy Markdown

Deploy Preview for nuxt3-docs canceled.

NameLink
🔨 Latest commit5e77dc2
🔍 Latest deploy loghttps://app.netlify.com/sites/nuxt3-docs/deploys/6320eccb71be9100080bc278

@pi0pi0 changed the title pef(nuxt, kit): import defineNuxtConfig from nuxt/configpef(nuxt): import defineNuxtConfig from nuxt/configSep 13, 2022
@pi0pi0 changed the title pef(nuxt): import defineNuxtConfig from nuxt/configperf(nuxt): import defineNuxtConfig from nuxt/configSep 13, 2022
@pi0
pi0 merged commit 3a60bf6 into mainSep 14, 2022
@pi0
pi0 deleted the perf/config2 branch September 14, 2022 10:37
@atinux

Copy link
Copy Markdown
Member

Shall we open an issue to keep track of updating it for documentation?

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.

nuxt is transpiled from nuxt.config

3 participants

@pi0@atinux@danielroe