Packages

@nuxt/webpack

2.18.1 · 28 Jun 2024MIT163.9k / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: Nuxt 2 has reached EOL and is no longer actively maintained. See https://nuxt.com/blog/nuxt2-eol for more details.What to use instead
Your version

2.15.0

15 Feb 2021Where it was published

2.18.1 is the newest release of 2.x.

npm marks 2.15.0 as deprecated: Nuxt 2 has reached EOL and is no longer actively maintained. See nuxt.com/blog/nuxt2-eol for more details.

In short

2 breaking13 new12 fixed1 changed6 internal

  • Breaking

    Minimum supported Node.js version is 12.0.0 (See #8327 for why)

  • Breaking

    general: Update all dependencies that require node 10.x

Release note

The section about @nuxt/webpack of a note shared by several packages.

Highlights

⚠️This release introduces behavior changes. Update with caution ⚠️

  • Breaking

    Minimum supported Node.js version is 12.0.0 (See #8327 for why)

  • Using jiti as new require engine with typescript support

  • Plug and play works out of the box

  • Allow opting-in to use postcss@8 (See #8546)

    NOTE: postcss-preset-env is disabled in v8 config as it doesn't support postcss v8 for now, so please install all below dependencies explicitly.

    yarn add --dev css-loader@^5.0.0 postcss@^8.1.10 postcss-import@^13.0.0 postcss-loader@^4.1.0 postcss-url@^10.1.1
    # or
    npm i --save-dev css-loader@^5.0.0 postcss@^8.1.10 postcss-import@^13.0.0 postcss-loader@^4.1.0 postcss-url@^10.1.1
  • Several encoding issues resolved by consistently using ufo

  • Components updated to v2 (please read migration guide)

  • When matching a webpack loader by name or query, should use includes instead of exact match (example)

Bug Fixes

  • general: Ignore trailing slash in static payloads manifest

  • general: Encoding issues with payload paths

  • general: trailingSlash and child routes not working

  • vue-app: Enable dynamic publicPath on server-side

  • vue-app: Static payload fetching bugfixes

  • vue-app: Check for Page.options before looking within

  • vue-app: Don't remove req, res and query from context unless in full static mode

  • vue-app: Ensure link.__prefetch exists before calling it

  • vue-app: Add missing id attribute to noopApp

  • vue-app: Scroll-to-top on route changes only

  • vue-app: Set push on router instance rather than prototype

  • vue-app: Do not preserve state when registering client-side dynamic module

  • vue-app: Add leading slash for payload hydration

  • webpack: Can't resolve absolute url in css

Features

  • general: Support plug-and-play, typescript runtime and native modules

  • Breaking

    general: Update all dependencies that require node 10.x

🇹 Types

  • Add missing ssr option to config types

  • vue.config types should be optional

  • Add missing redirect overload to Context interface

  • Add enablePreview to context

  • Add missing loadingScreen type definition

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.