@nuxt/webpack
2.18.1 · 28 Jun 2024MIT163.9k / weekRepositoryHomepagenpmAtom feed
2.18.1 is the newest release of 2.x.
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
includesinstead of exact match (example)
Bug Fixes
general: Ignore trailing slash in static payloads manifest
general: Encoding issues with payload paths
general:
trailingSlashand child routes not workingvue-app: Enable dynamic
publicPathon server-sidevue-app: Static payload fetching bugfixes
vue-app: Check for
Page.optionsbefore looking withinvue-app: Don't remove
req,resandqueryfrom context unless in full static modevue-app: Ensure
link.__prefetchexists before calling itvue-app: Add missing
idattribute tonoopAppvue-app: Scroll-to-top on route changes only
vue-app: Set
pushon router instance rather than prototypevue-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.configtypes should be optionalAdd missing
redirectoverload toContextinterfaceAdd
enablePreviewto contextAdd missing
loadingScreentype 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.