
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@darcytech/babel-preset-darcytech
Advanced tools
@darcytech/babel-preset-darcytech这个 package 是专为 react 应用设计的 babel 预设。
npm install --save-dev @darcytech/babel-preset-darcytech
| 选项 | 含义 | 默认值 |
|---|---|---|
| useTypeScript | 是否使用 TypeScript | true |
| runtime | 编译 JSX 使用哪个运行时, React17 推荐使用 automatic (babel7.9.0 开始支持), 旧版 react 使用 classic | classic |
| useBuiltIn | 该选项配置 @babel/preset-env 如何处理polyfills | entry |
// .babelrc
{
"presets": ["@darcytech/darcytech"]
}
// .babelrc
{
"presets": [["@darcytech/darcytech", { "useTypeScript": false }]]
}
# Browsers that we support
defaults
not IE 11
开发环境:
process.env.BABEL_ENV = "development";
process.env.NODE_ENV = "development";
生产环境:
process.env.BABEL_ENV = "production";
process.env.NODE_ENV = "production";
有助于减少线上包的大小。
支持最新的 JavaScript 标准。除了 ES6 语法功能外,它还支持:
FAQs
专为 react app 提供的 Babel preset
We found that @darcytech/babel-preset-darcytech 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
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.