unjs / unplugin

Unified plugin system for Vite, Rollup, Webpack, esbuild, Rolldown, and more

Home Page:https://unplugin.unjs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webpack build is broken in unplugin `0.9.0`

sxzz opened this issue · comments

You can see the log from https://github.com/sxzz/unplugin-vue/runs/7743896403?check_suite_focus=true

I have no idea with webpack.

Reproduction repo: https://github.com/sxzz/unplugin-vue/tree/04bc55cb77270930cef981a63cf493dc1cae3d68

Run pnpm run build in root workspace, then run pnpm run build in examples/webpack

It works in 0.8.1.

It would be great if you can narrow down the issue and provide a minimal reproduction (or better as a PR of failing tests)

Of course. I'm traveling now. I created this issue for reminding myself. I'll provide more info when I get back! 😛

I guess this might be the case:
unocss/unocss@d53a365

I'm also running into this issue. I don't yet have a minimal reproduction, but it seems to be related to the HtmlWebpackPlugin. I can work around it by adding the following to package.json.

"overrides": {
    "unplugin-icons": {
         "unplugin": "0.8.1"
    }
},

Here's a simple reproduction: unplugin-issue.zip