Skip to content

Commit

Permalink
refactor(schema): clean up experimental options (#20112)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 7, 2023
1 parent 4f0b3c7 commit d4f718d
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions packages/schema/src/config/experimental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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).
*
Expand Down

0 comments on commit d4f718d

Please sign in to comment.