
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
babel-preset-r29
Advanced tools
A Babel preset for Refinery29
npm install --save-dev babel-preset-r29
.babelrc
(Recommended).babelrc
{
"presets": ["r29"]
}
or, with some of our supported options:
{
"presets": [
"r29", {
"node": true
}
]
}
$ babel script.js --presets r29
require("babel-core").transform("code", {
presets: ["r29"]
});
boolean
, defaults to false
.
Targets Node v6 instead of browsers. Useful for avoiding the inclusion of unnecessary things like the regenerator runtime in our server builds.
boolean
, defaults to false
.
Turns on the ES2015 plugin's loose mode. http://2ality.com/2015/12/babel6-loose-mode.html
In practice we have found that this can reduce bundle size by ~5%.
"amd" | "umd" | "systemjs" | "commonjs" | false
, defaults to "commonjs".
Enable transformation of ES6 module syntax to another module type.
Setting this to false will not transform modules. Use this for Webpack >=2,
since Webpack >=2's tree-shaking works best if you don't transform import
/export
statements.
Example of a Webpack config where this is the case:
{
test: /\.js$/,
use: {
loader: 'babel-loader',
options: {
presets: [
['r29', { modules: false }],
],
plugins: []
}
},
exclude: /node_modules/
}
FAQs
Babel preset for Refinery29
The npm package babel-preset-r29 receives a total of 1 weekly downloads. As such, babel-preset-r29 popularity was classified as not popular.
We found that babel-preset-r29 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 17 open source maintainers 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.