Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
babel-preset-wsc-pc
Advanced tools
这个插件集合,将几个 wsc-pc 常用的 babel 插件包进来,另加入了 react 业务组件样式的按需引入,在使用 react-components 时,不需要再单独引入样式文件了。
这个插件仅在 wsc-pc-xxx node 的 v4 项目中使用。
主要集成了以下插件:
yarn add babel-preset-wsc-pc --save
配置示例:
// In your .babelrc
{
"preset": [
"babel-preset-wsc-pc",
{
"components": ["@youzan/list-modal"], // 需要按需引入样式的组件列表,不写就为默认所有业务组件
"automaticStyleImport": true // 同 babel-plugin-zent 的配置
}
]
}
FAQs
wsc babel preset
The npm package babel-preset-wsc-pc receives a total of 10 weekly downloads. As such, babel-preset-wsc-pc popularity was classified as not popular.
We found that babel-preset-wsc-pc 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.