Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

feat(nuxt, kit): auto import defineNuxtConfig #7497

Merged
merged 4 commits into from Sep 14, 2022
Merged

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Sep 14, 2022

πŸ”— Linked issue

#7485

❓ 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

A quick implementation to make defineNuxtConfig available when loading configuration. This way we can remove import { defineNuxtConfig } from 'nuxt/config'. If the feature proves to be stable, will probably move it to c12.

Type support: It is possible with a global reference defined in 'nuxt' types. Since we run nuxi prepare after installing dependencies, it should be immediately available.

πŸ“ Checklist

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

@pi0 pi0 requested a review from danielroe September 14, 2022 10:52
@netlify
Copy link

netlify bot commented Sep 14, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit 4ca6bcb
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/6321b519bdafac00084d0adf

@pi0 pi0 merged commit ac0b3a6 into main Sep 14, 2022
@pi0 pi0 deleted the feat/config-autoimport branch September 14, 2022 11:10
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to 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.

None yet

2 participants