A Babel preset that includes plugins for async generator functions, class properties, object rest spread, and decorators, targeting Babel 7.0 and requiring @babel/core and babel-loader 8.0+. Version 1.4.0 is the latest release, with modest updates to Babel dependencies. This preset is minimal and opinionated, primarily intended for personal or small projects, and not widely adopted. It differs from more comprehensive presets like @babel/preset-env by offering a fixed set of plugins without dynamic targeting or polyfilling.
npm install babel-preset-nextVerified import paths — ran on the pinned version, not inferred.
Shows installation and configuration of babel-preset-next via .babelrc and webpack.
Consider using @babel/preset-env with appropriate targets and plugin-proposal-* for individual proposals.
Ensure @babel/core >=7.0.0 and babel-loader >=8.0.0 are installed.
Use babel-minify or upgrade webpack to v4 with latest uglifyjs-webpack-plugin.
Migrate to Babel 7 if using this preset.
npm install --save-dev @babel/core
Use require('babel-preset-next') or string reference in .babelrc.Upgrade to @babel/core 7+ and babel-loader 8+.