
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
babel-preset-eslatest-node6
Advanced tools
Babel preset for the latest ECMAScript specification for Node v6
Babel preset to make Node v6 fully compatible with the latest ECMAScript specification. This includes all finished proposals but not stage 0 to 3 proposals.
It intentionally won't compile things that are already natively supported by Node v6.
Included plugins
Missing features
For Object.values/Object.entries, String padding or Object.getOwnPropertyDescriptors support, use babel-polyfill or transform-runtime.
npm install --save-dev babel-preset-eslatest-node6
.babelrc
(recommended).babelrc
{
"presets": ["eslatest-node6"]
}
Note: if you are using object rest/spread, you will need to add a few additional plugins to make it work:
npm install --save-dev \
babel-plugin-transform-es2015-destructuring \
babel-plugin-transform-es2015-parameters \
babel-plugin-transform-object-rest-spread
{
"presets": ["eslatest-node6"],
"plugins": [
"transform-es2015-destructuring",
"transform-es2015-parameters",
["transform-object-rest-spread", { "useBuiltIns": true }]
]
}
babel script.js --presets eslatest-node6
require('babel-core').transform('code', {
presets: ['eslatest-node6'],
})
loose
- Enable "loose" transformations for any plugins in this preset that allow them (disabled by default).{
"presets": [
["eslatest-node6", { "loose": true }]
]
}
Inspired by babel-preset-es2015-node6
FAQs
Babel preset for the latest ECMAScript specification for Node v6
The npm package babel-preset-eslatest-node6 receives a total of 39 weekly downloads. As such, babel-preset-eslatest-node6 popularity was classified as not popular.
We found that babel-preset-eslatest-node6 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.