Babel 6 preset for Node.js 7.10–8.x. This preset enables ES2015+ features that are not natively supported in Node 7.10+, including class properties, object rest/spread, export extensions, async generators, and trailing function commas. It also includes production-specific minification and dead code elimination plugins. Version 1.2.0 is the latest stable release. This package is specifically tailored for Node 7.10 to 8.x and is not intended for use with other Node versions or Babel 7.
npm install babel-preset-node8Verified import paths — ran on the pinned version, not inferred.
Show how to install and configure the babel-preset-node8 preset for Babel 6.
Use @babel/preset-env with targets for Node 8 instead.
Use babel-preset-node6 for Node 6, or babel-preset-env for broader Node support.
Set NODE_ENV=production explicitly to enable production optimizations.
If targeting Node <8, do not rely on this plugin for runtime support.
Migrate to Babel 7 and use @babel/preset-env instead.
Ensure Node version is >=7.10, or add @babel/plugin-transform-runtime and @babel/runtime.
Run 'npm install --save-dev babel-preset-node8' and ensure package.json includes it.