Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
babel-preset-es2015-tiny
Advanced tools
Babel preset for some es2015 plugins not includes Symbol and Generators.
这是一个 Babel preset, 它是 ES2015 preset 的子集。
它不包含下面这些 ES2015 preset 中的 transform 插件:
当你结合 transform-runtime 一起使用 ES2015 preset 的时候,
Symbol
shim 会被加入到最终的打包文件中,
即使你的项目里完全没有用到过它。
为了避免这个情况, 所以需要删除与 Symbol 相关的 transform 插件, 详情见这篇博文。
如果你的项目里没有用到 for...of
、Symbol
、Generators 函数和 async/await, 你可以使用 es2015-tiny 来减小最终文件体积。
$ npm install --save-dev babel-preset-es2015-tiny
.babelrc
(推荐){
"presets": ["es2015-tiny"]
}
$ babel script.js --presets es2015-tiny
require("babel-core").transform("code", {
presets: ["es2015-tiny"]
});
FAQs
Babel preset for some es2015 plugins not includes Symbol and Generators.
The npm package babel-preset-es2015-tiny receives a total of 0 weekly downloads. As such, babel-preset-es2015-tiny popularity was classified as not popular.
We found that babel-preset-es2015-tiny 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.