unplugin icon indicating copy to clipboard operation
unplugin copied to clipboard

Webpack build is broken in unplugin `0.9.0`

Open sxzz opened this issue 3 years ago • 2 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.

sxzz avatar Aug 09 '22 16:08 sxzz

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

antfu avatar Aug 11 '22 06:08 antfu

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

sxzz avatar Aug 11 '22 10:08 sxzz

I guess this might be the case: https://github.com/unocss/unocss/commit/d53a3654f320c7a7498ed3379e70dc5bea08418d

antfu avatar Aug 21 '22 14:08 antfu

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"
    }
},

cjpearson avatar Sep 07 '22 09:09 cjpearson

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

cjpearson avatar Sep 07 '22 09:09 cjpearson