3-10 babel-loader + Webpack.ProvidePlugin 一起用貌似打包jquery有bug
来源:4-7 html in webpack(3) - 配合优化

慕斯卡8150754
2018-01-18
html引入js会报错,$export不认识
写回答
2回答
-
qbaty
2018-01-19
你是怎么用的呢?怎么引入的?是node_modules里的文件吗?
00 -
慕斯卡8150754
提问者
2018-01-19
这个要在babel-loader中加入exclude
{
test: /\.js$/,
use: [
{
loader: 'babel-loader'
}
],
exclude: /node_modules/
},
貌似是 https://stackoverflow.com/questions/43222249/webpack-2-3-3-typeerror-export-is-not-a-function
012018-04-18
相似问题