Change8

v4.0.0-alpha.2

Breaking Changes
📦 nuxtView on GitHub →
1 breaking2 features🐛 5 fixes🔧 4 symbols

Summary

Nuxt 4.0.0-alpha.2 introduces directory structure updates, removes the top-level generate schema option, and improves scroll behavior alignment with page transitions.

⚠️ Breaking Changes

  • The top-level 'generate' option has been removed from the schema. Configuration for static generation should be moved to the appropriate nested configuration blocks.

Migration Steps

  1. Remove 'generate' from the top level of your Nuxt configuration file.
  2. Update project directory structure to align with Nuxt 4 requirements as per the updated documentation.

✨ New Features

  • kit: Support single import in addServerImports
  • nuxt: Align scroll behavior with page transition completion

🐛 Bug Fixes

  • webpack: Update dynamic require pattern
  • nuxt: Update component loader regexp for minified code
  • nuxt: Allow camelCase for lazy hydration attributes
  • nuxt: Respect inheritAttrs: false in createClientOnly function
  • kit: Do not double-urlify file urls when resolving schema

🔧 Affected Symbols

addServerImportscreateClientOnlyuseCookiegenerate