feat: add nitro.experimental.decorators

This commit is contained in:
Daniel Roe 2024-06-18 19:17:16 +01:00
parent 245128170a
commit f5e69d7c70
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -56,6 +56,8 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
experimental: { experimental: {
asyncContext: nuxt.options.experimental.asyncContext, asyncContext: nuxt.options.experimental.asyncContext,
typescriptBundlerResolution: nuxt.options.future.typescriptBundlerResolution || nuxt.options.typescript?.tsConfig?.compilerOptions?.moduleResolution?.toLowerCase() === 'bundler' || nuxt.options.nitro.typescript?.tsConfig?.compilerOptions?.moduleResolution?.toLowerCase() === 'bundler', typescriptBundlerResolution: nuxt.options.future.typescriptBundlerResolution || nuxt.options.typescript?.tsConfig?.compilerOptions?.moduleResolution?.toLowerCase() === 'bundler' || nuxt.options.nitro.typescript?.tsConfig?.compilerOptions?.moduleResolution?.toLowerCase() === 'bundler',
// @ts-expect-error coming soon!
decorators: nuxt.options.experimental.decorators,
}, },
framework: { framework: {
name: 'nuxt', name: 'nuxt',