Babel 6 transform-runtime: $export is not a function

前端 未结 7 1075
一向
一向 2020-12-14 05:52

I\'m trying to incorporate Babel\'s transform-runtime to make my code compatible with IE9. But since integrating it, the code won\'t even run on Chrome. I get the error

7条回答
  •  执念已碎
    2020-12-14 06:46

    Try adding exclude: /node_modules/ after loader: 'babel-loader'. I had the same problem when trying to run the runtime transformer without excluding node_modules. I am not aware of the underlying problem, though.

提交回复
热议问题