将chrome扩展发布到商店时的Webpack构建错误

时间:2019-01-28 12:24:58

标签: webpack google-chrome-extension global-variables

我总是会得到一个错误,即未定义变量,我不知道这是否是因为它的作用域是webpack而不是全局变量

enter image description here

enter image description here

我的大多数函数都使用回调函数,因此要么不传递变量,要么将所有变量设为全局变量。我不想做的事:(

enter image description here

0 个答案:

没有答案