npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

italent-react

v16.9.0-3

Published

构建 react 资源,并挂载到 window 上,包含的模块有:

Readme

构建 react 资源,并挂载到 window 上,包含的模块有:

  • React
  • ReactDOM
  • styled (styled-components)

webpack externals是我们作为代码拆分一种方案,主要目的就是将比较稳定的基础依赖库,如react,预构建出来,放在承载页上,在运行态下提供这些依赖。这样,我们在项目构建时,就不需要打包这些资源,webpack在运行时,会直接通过你配置的external信息引用这些依赖。通过合理的代码拆分,实现前端资源的持久化缓存。详细信息参考webpack官方文档。

如何在你的项目中配置externals:

  1. 将你所需要的版本的压缩版资源放在承载页上,至于位置,只要保证在项目资源之前即可。(如果你之前的项目采用的dll,别忘了将dll的资源删掉)
  2. 如果你的项目采用了@talentui/webpack-config模块,在webpack.config.js文件中扩展如下参数:
externals: {
  react: 'React',
  'react-dom': 'ReactDOM',
  'styled-components': 'styled'
},

如果你之前的项目采用的是dll的话,直接将dll参数去掉,然后加上exrerals参数即可。

16.9.0

"react": "16.9.0",
"react-dom": "16.9.0",
"styled-components": "4.1.3"
  • 静态资源路径 http://stnew.beisen.com/ux/upaas/italent-react/release/dist/main-dc99809-16.9.0-2.min.js

16.8.6

静态资源路径:

"react": "16.8.6",
"react-dom": "16.8.6",
"styled-components": "4.1.3"

16.8.3

静态资源路径:

"react": "16.8.3",
"react-dom": "16.8.3",
"styled-components": "4.1.3"

16.8.2

静态资源路径:

"react": "16.8.2",
"react-dom": "16.8.2",
"styled-components": "4.1.3"

16.8.1

静态资源路径:

"react": "16.8.1",
"react-dom": "16.8.1",
"styled-components": "4.1.3"

16.7.1

静态资源路径:

"react": "16.7.0",
"react-dom": "16.7.0",
"styled-components": "4.1.3"