@nuxt/docs-nightly 5.0.0-2611141937-2073a42 → 5.0.0-2611142016-4eafd74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -405,7 +405,7 @@ bun add -D jiti
405
405
 
406
406
  ::
407
407
 
408
- A `nuxt.schema` file always needs `jiti`, whatever Node version you are on: its JSDoc annotations are read by an import-time transform rather than by importing the file.
408
+ `nuxt.schema` files are imported by the runtime in the same way, and Nuxt reads their JSDoc annotations as they are imported. So they follow the same rules as config files: a `nuxt.schema.ts` inside `node_modules`, such as one shipped by a published layer, is loaded through `jiti`. On a runtime without `module.registerHooks()`, such as Bun, every `nuxt.schema` file is loaded through `jiti`.
409
409
 
410
410
  One smaller change comes with this: PostCSS plugins named in `postcss.plugins` are now resolved by the runtime, so a plugin name that only resolves through a Nuxt `alias` entry no longer loads. Use the package name, or a path.
411
411
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/docs-nightly",
3
- "version": "5.0.0-2611141937-2073a42",
3
+ "version": "5.0.0-2611142016-4eafd74",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",