
rollup
Prpr_Saber
这个作者很懒,什么都没留下…
展开
-
Rollup.js | 解决打包react项目报错ReferenceError: process is not defined
打开bundle.js定位报错: process对象是nodejs的环境变量,浏览器端是没有的。解决办法,在打包后的bundle.js里var一个process对象,例如var process = { env: { NODE_ENV: 'production' }}但是每次重新构建bundle.js后,又要重新添加,所以可以在rollup.config.js...原创 2019-01-26 22:05:57 · 17635 阅读 · 1 评论 -
rollup-plugin-uglify | 解决报错TypeError: uglify is not a function
改成解构式导包原创 2019-02-18 13:25:35 · 3468 阅读 · 2 评论 -
rollup | 解决报错Error: '__moduleExports' is not exported by xxxx
官方解释Error: "[name] is not exported by [module]"Occasionally you will see an error message like this:'foo' is not exported by bar.js (imported by baz.js)Import declarations must have correspo...原创 2019-02-26 13:31:39 · 12076 阅读 · 0 评论