mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
refactor(schema): clean up experimental
options (#20112)
This commit is contained in:
parent
4f0b3c7223
commit
d4f718d8cd
@ -15,6 +15,8 @@ export default defineUntypedSchema({
|
||||
*/
|
||||
reactivityTransform: false,
|
||||
|
||||
// TODO: Remove in v3.5 when nitro has support for mocking traced dependencies
|
||||
// https://github.com/unjs/nitro/issues/1118
|
||||
/**
|
||||
* Externalize `vue`, `@vue/*` and `vue-router` when building.
|
||||
* @see https://github.com/nuxt/nuxt/issues/13632
|
||||
@ -73,30 +75,6 @@ export default defineUntypedSchema({
|
||||
*/
|
||||
restoreState: false,
|
||||
|
||||
/**
|
||||
* Use vite-node for on-demand server chunk loading
|
||||
*
|
||||
* @deprecated use `vite.devBundler: 'vite-node'`
|
||||
*/
|
||||
viteNode: {
|
||||
$resolve: (val) => {
|
||||
val = process.env.EXPERIMENTAL_VITE_NODE ? true : val
|
||||
if (val === true) {
|
||||
console.warn('`vite-node` is now enabled by default. You can safely remove `experimental.viteNode` from your config.')
|
||||
} else if (val === false) {
|
||||
console.warn('`vite-node` is now enabled by default. To disable it, set `vite.devBundler` to `legacy` instead.')
|
||||
}
|
||||
return val ?? true
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Split server bundle into multiple chunks and dynamically import them.
|
||||
*
|
||||
* @see https://github.com/nuxt/nuxt/issues/14525
|
||||
*/
|
||||
viteServerDynamicImports: true,
|
||||
|
||||
/**
|
||||
* Inline styles when rendering HTML (currently vite only).
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user