Skip to content

Commit 1beddba

Browse files
committed
fix(kit)!: drop support for building nuxt 2 projects
1 parent d30a64e commit 1beddba

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/kit/src/loader/nuxt.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@ export async function loadNuxt (opts: LoadNuxtOptions): Promise<Nuxt> {
3939
export async function buildNuxt (nuxt: Nuxt): Promise<any> {
4040
const rootDir = pathToFileURL(nuxt.options.rootDir).href
4141

42-
// Nuxt 3
43-
if (nuxt.options._majorVersion === 3) {
44-
const { build } = await tryImportModule('nuxt-nightly', rootDir) || await tryImportModule('nuxt3', rootDir) || await importModule('nuxt', rootDir)
45-
return build(nuxt)
46-
}
47-
48-
// Nuxt 2
49-
const { build } = await tryImportModule('nuxt-edge', rootDir) || await importModule('nuxt', rootDir)
42+
const { build } = await tryImportModule('nuxt-nightly', rootDir) || await importModule('nuxt', rootDir)
5043
return build(nuxt)
5144
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy