mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-21 21:25:11 +00:00
chore(deps): upgrade to nitro 2.8 (#24370)
This commit is contained in:
parent
a10e33c009
commit
63685431d8
@ -59,11 +59,11 @@
|
||||
"execa": "8.0.1",
|
||||
"fs-extra": "11.1.1",
|
||||
"globby": "14.0.0",
|
||||
"h3": "1.8.2",
|
||||
"h3": "1.9.0",
|
||||
"happy-dom": "12.10.3",
|
||||
"jiti": "1.21.0",
|
||||
"markdownlint-cli": "0.37.0",
|
||||
"nitropack": "2.7.2",
|
||||
"nitropack": "2.8.0",
|
||||
"nuxi": "3.9.1",
|
||||
"nuxt": "workspace:*",
|
||||
"nuxt-vitest": "0.11.3",
|
||||
|
@ -50,7 +50,7 @@
|
||||
"@types/lodash-es": "4.17.11",
|
||||
"@types/semver": "7.5.5",
|
||||
"lodash-es": "4.17.21",
|
||||
"nitropack": "2.7.2",
|
||||
"nitropack": "2.8.0",
|
||||
"unbuild": "latest",
|
||||
"vite": "4.5.0",
|
||||
"vitest": "0.33.0",
|
||||
|
@ -81,14 +81,14 @@
|
||||
"estree-walker": "^3.0.3",
|
||||
"fs-extra": "^11.1.1",
|
||||
"globby": "^14.0.0",
|
||||
"h3": "^1.8.2",
|
||||
"h3": "^1.9.0",
|
||||
"hookable": "^5.5.3",
|
||||
"jiti": "^1.21.0",
|
||||
"klona": "^2.0.6",
|
||||
"knitwork": "^1.0.0",
|
||||
"magic-string": "^0.30.5",
|
||||
"mlly": "^1.4.2",
|
||||
"nitropack": "^2.7.2",
|
||||
"nitropack": "^2.8.0",
|
||||
"nuxi": "^3.9.1",
|
||||
"nypm": "^0.3.3",
|
||||
"ofetch": "^1.3.3",
|
||||
|
@ -52,7 +52,6 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
|
||||
asyncContext: nuxt.options.experimental.asyncContext,
|
||||
typescriptBundlerResolution: nuxt.options.experimental.typescriptBundlerResolution || nuxt.options.typescript?.tsConfig?.compilerOptions?.moduleResolution?.toLowerCase() === 'bundler' || _nitroConfig.typescript?.tsConfig?.compilerOptions?.moduleResolution?.toLowerCase() === 'bundler'
|
||||
},
|
||||
// @ts-expect-error TODO: Romove after nitro 2.8 upgrade
|
||||
framework: {
|
||||
name: 'nuxt',
|
||||
version: nuxtVersion
|
||||
@ -331,6 +330,7 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
|
||||
nitroConfig.rollupConfig!.plugins = await nitroConfig.rollupConfig!.plugins || []
|
||||
nitroConfig.rollupConfig!.plugins = Array.isArray(nitroConfig.rollupConfig!.plugins) ? nitroConfig.rollupConfig!.plugins : [nitroConfig.rollupConfig!.plugins]
|
||||
nitroConfig.rollupConfig!.plugins!.push(
|
||||
// @ts-expect-error rollup 4 types
|
||||
ImportProtectionPlugin.rollup({
|
||||
rootDir: nuxt.options.rootDir,
|
||||
patterns: [
|
||||
|
@ -44,9 +44,9 @@
|
||||
"@vue/compiler-core": "3.3.8",
|
||||
"c12": "1.5.1",
|
||||
"esbuild-loader": "4.0.2",
|
||||
"h3": "1.8.2",
|
||||
"h3": "1.9.0",
|
||||
"ignore": "5.3.0",
|
||||
"nitropack": "2.7.2",
|
||||
"nitropack": "2.8.0",
|
||||
"ofetch": "1.3.3",
|
||||
"unbuild": "latest",
|
||||
"unctx": "2.3.1",
|
||||
|
@ -47,7 +47,7 @@
|
||||
"externality": "^1.0.2",
|
||||
"fs-extra": "^11.1.1",
|
||||
"get-port-please": "^3.1.1",
|
||||
"h3": "^1.8.2",
|
||||
"h3": "^1.9.0",
|
||||
"knitwork": "^1.0.0",
|
||||
"magic-string": "^0.30.5",
|
||||
"mlly": "^1.4.2",
|
||||
|
@ -24,6 +24,7 @@ export function analyzePlugin (ctx: ViteBuildContext): Plugin[] {
|
||||
}
|
||||
}
|
||||
},
|
||||
// @ts-expect-error rollup 4 types
|
||||
visualizer({
|
||||
...analyzeOptions,
|
||||
filename: 'filename' in analyzeOptions ? analyzeOptions.filename!.replace('{name}', 'client') : undefined,
|
||||
|
@ -38,7 +38,7 @@
|
||||
"file-loader": "^6.2.0",
|
||||
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
||||
"fs-extra": "^11.1.1",
|
||||
"h3": "^1.8.2",
|
||||
"h3": "^1.9.0",
|
||||
"hash-sum": "^2.0.0",
|
||||
"lodash-es": "4.17.21",
|
||||
"magic-string": "^0.30.5",
|
||||
|
920
pnpm-lock.yaml
920
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -32,7 +32,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
|
||||
const serverDir = join(rootDir, '.output/server')
|
||||
|
||||
const serverStats = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir)
|
||||
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"198k"')
|
||||
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"199k"')
|
||||
|
||||
const modules = await analyzeSizes('node_modules/**/*', serverDir)
|
||||
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"1840k"')
|
||||
|
Loading…
Reference in New Issue
Block a user