
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@tarojsx/polyfill
Advanced tools
当前代码提交频繁,一些特性时有变化。
很多优秀的前端类库都是为现代浏览器而设计的。Taro3 Runtime 为我们提供了基础的 BOM/DOM API,例如 window document navigator。我们需要自己动手在这个基础上打造一个更接近现代浏览器的运行环境。
这里搜集了一些扩展 Taro3 运行环境的 小玩意儿(Polyfill)
:electric_plug: 编译时注入。
:clapper: 项目中直接使用。
:octopus: 自动处理依赖关系。
npm i @tarojsx/polyfill
更新 config/index.js 配置如下
const { TaroProvidePlugin } = require('@tarojsx/polyfill/dist/plugins')
const config = {
mini: {
webpackChain(chain, webpack) {
// 注入默认 polyfills (详见下方列表)
chain
.plugin('taroProviderPlugin')
.use(TaroProvidePlugin)
// 注入更多 polyfills
// chain
// .plugin('taroProviderPlugin')
// .use(TaroProvidePlugin, [['default', 'Intl']])
}
}
}
欢迎各种形式的支持。至少可以给颗星 :star:
npm run testFailed to launch wechat web devTools,请先退出微信开发者工具。FAQs
Taro3 runtime polyfill
The npm package @tarojsx/polyfill receives a total of 5 weekly downloads. As such, @tarojsx/polyfill popularity was classified as not popular.
We found that @tarojsx/polyfill 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.