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
The text was updated successfully, but these errors were encountered:
sxzz
changed the title
Transform failed in Webpack 5 production mode
Transform failed in Webpack 5 production mode with vue-loader and babel-loader
Jun 2, 2022
When working with vue-loader and babel-loader, the transforms fail. And only in production mode.
Related issue: vue-macros/vue-macros#23
this._compiler? $unpluginContext
is undefined, it seems there is no inject to compiler?Since I am in unfamiliar with webpack plugin development, I guess it might be a problem with the inject here.
![image](https://user-images.githubusercontent.com/6481596/171723480-a9fb18b6-64ad-45c7-8bab-69e4c00a5c45.png)
Here is reproduction: https://github.com/sxzz/unplugin-issue
Please run
nr build && nr preview
https://github.com/sxzz/unplugin-issue/blob/3ab41951cb179cd11bef2473a77f3686c4ca4744/vue.config.js#L8
Removes babel-loader and then unplugin works
The text was updated successfully, but these errors were encountered: