You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
我发现一个问题,我开启了minimizer,但是只要打包生产,有一个地方是
let obj = {}
api().then
打包出来的产物是
let a = ({0: "账号停用成功!", 1: "账号启用成功!"})(0, l.hF)({ id: t,used: e}).then
然后点击按钮触发这个方法以后,就会报错TypeError: {(intermediate value)(intermediate value)} is not a function
这是我的rspack的optimization
目前已解决,我的方案是
在rules里面添加
这样即可打包出来的产物有分号。
我想问的是还有没有其他更好的解决方案呢?感谢
Beta Was this translation helpful? Give feedback.
All reactions