Skip to content

nuxt3 does not export NuxtConfig #12005

@Patrick-Remy

Description

@Patrick-Remy

Environment


  • Operating System: Darwin
  • Node Version: v14.15.4
  • Nuxt Version: 3-3.0.0
  • Package Manager: Yarn
  • Bundler: Webpack
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Describe the bug

I am using following config for my project that I successfully migrated to @nuxt/bridge (thanks for your efforts!)

import { defineNuxtConfig, NuxtConfig } from '@nuxt/bridge'

const config: NuxtConfig = {
  target: 'static',
  // ...
}

// Some conditional dev stuff 
// ..

export default defineNuxtConfig(config)

But after going the next step and started migrating to nuxt3, I now need need separate imports. For best DX I suggest to re-export the type in that package. This saves every developer the type lookup.

import { defineNuxtConfig } from 'nuxt3'
import { NuxtConfig } from '@nuxt/kit'

I'll open a PR for that.

Reproduction

Description is obvious.

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions