Packages

@nuxt/babel-preset-app

2.18.1 · 28 Jun 2024MIT167.2k / 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.3.1

16 Nov 2018Where it was published

2.18.1 is the newest release of 2.x.

npm marks 2.3.1 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 deprecated20 new2 fixed10 changed

  • Deprecated

    Deprecate styleResources because of performance issues. Use our new community module instead (it's a drop-in replacement)

  • Deprecated

    Deprecate callback-based asyncData, fetch and middleware methods. Use Promises or async/wait instead.

Release note

Release Notes

With v2.3, Nuxt.js is splitted into smaller packages (Aka a mono-repo). This means smaller packages, independent versioning support and ability to replace any part of Nuxt.js without dirty hacks. Before this release, we carefully tested the latest updates using edge release channel against real-world projects and there should be no breaking changes.

Please note that for upgrading Nuxt.js just changing version inside package.json is not enough. Please use yarn upgrade or npm upgrade so that the final directory structure of node_modules will be correct. In case of problems clean up node_modules and yarn.lock/package-lock.json. Still having problems? open an issue in cmty!

Fixes and Enhancements

  • CLI and DX improvements

  • CLI cleanups and improvements

  • Improve nuxt-loading component

  • Set defaults for port and host values

  • Dynamically read environment variables when loading nuxt.config.js (PR #4208)

  • Support custom pushAssets function to control http2 push headers

  • Reduce duplicate code in routes.js

  • Print warning when using build.extractCSS.allChunks

  • Throw an error when layout property is not string

  • Use require.resolve to get the path of babel-loader

  • Check style resources for existence

  • Serialize config head fn shorthand correctly

  • Don't accept ranges

  • Correctly resolve layouts with nested custom dir

  • Warn on unknown mode

  • Use postcss.order to change order of postcss plugins

  • Fix for double escaping static class on SSR

  • Fix stable route sorting for Node v11

New Features

  • Modern build support (#4231) (#4241)

  • Dedicated help command (nuxt help [cmd])

  • List commands nuxt --help

  • Support asynchronous nuxt.config.js

Dependency Upgrades

Deprecations

  • Deprecated

    Deprecate styleResources because of performance issues. Use our new community module instead (it's a drop-in replacement)

  • Deprecated

    Deprecate callback-based asyncData, fetch and middleware methods. Use Promises or async/wait instead.

Internal Refactors

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.