Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@newsteam/babel-preset
Advanced tools
This package provides a preset for babel.
A single babel preset is exported.
Our default export contains all of our babel plugins and presets. It requires the following peer dependencies:
@babel/core
npm install --save-dev @newsteam/babel-preset
npx install-peerdeps --dev @newsteam/babel-preset
"@newsteam/babel-preset"
or your "presets"
array in to your .babelrc.string | Array<string> | { [string]: string }, defaults to {}.
Describes the environments you support/target for your project.
This can either be a browserslist-compatible query:
{
"targets": "> 0.25%, not dead"
}
Or an object of minimum environment versions to support:
{
"targets": {
"chrome": "58",
"ie": "11"
}
}
Example environments: chrome, opera, edge, firefox, safari, ie, ios, android, node, electron.
Sidenote, this uses @babel/preset-env under the hood, so if no targets are specified it will transform all ECMAScript 2015+ code by default.
boolean, defaults to false.
Enables the export default module.exports that was turned off in Babel 6.
boolean, defaults to false.
Outputs the targets/plugins used and the version specified in plugin data version to console.log.
boolean, defaults to false.
Toggles plugins that aid in development, such as @babel/plugin-transform-react-jsx-self and @babel/plugin-transform-react-jsx-source.
You can run tests with npm test
.
FAQs
Shared preset for babel
We found that @newsteam/babel-preset demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.