如何用webpack打包一个自己的React库?


我写了一个基于React的库。 请问如何打包成 和 react/dist/x.js 这样的文件。
调用者可以直接script,也可以ES6模块引进去,也可以amd cmd?

reactjs webpack

Hans小斯 9 years, 8 months ago

我已经找到方案。 见 https://github.com/gmfe/react-gm

矿泉盐汽水 answered 9 years, 8 months ago

Your Answer