webpack4 打包 library 遇到的坑
摘要:output 中的配置,主要是 libraryTarget 和 umdNamedDefine。 另外一点就是在 babel 的配置中需要添加 "sourceType": "unambiguous" 这个配置。 因为 webpack4 不支持 export default 和 module.expor
阅读全文
posted @ 2019-11-14 10:21
Tirion
posted @ 2019-11-14 10:21