alloc / alloc/vite-plugin-compress
Can't build with vite@4, Is it really abandoned?
- Ngôn ngữ chính
- TypeScript
- Star
- 133
- Fork
- 13
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
This plugin is really broken with vite@4. Just, create a vite project based on one of the available templates, then use this plugin as documented in readme. I even tried it as a regular dependency and again as a dev dependency but failed.
problem 1:
```
failed to load config from /home/linuxuser/my-vue-app/vite.config.js
error during build:
TypeError: compress is not a function
at file:///home/linuxuser/my-vue-app/vite.config.js.timestamp-1689109439253-f0f6a29d5d51b.mjs:8:5
at ModuleJob.run (node:internal/modules/esm/module_job:192:25)
```
problem 2 - compress.default() instead of compress() didn't help at all, and I'm receiving this error:
```
error during build:
TypeError: Cannot set properties of undefined (setting 'writeBundle')
at configResolved (/home/linuxuser/my-vue-app/node_modules/vite-plugin-compress/dist/plugin.js:39:30)
at file:///home/linuxuser/my-vue-app/node_modules/vite/dist/node/chunks/dep-210e5610.js:65822:28
at Array.map ()
at resolveConfig (file:///home/linuxuser/my-vue-app/node_modules/vite/dist/node/chunks/dep-210e5610.js:65822:14)
at async build (file:///home/linuxuser/my-vue-app/node_modules/vite/dist/node/chunks/dep-210e5610.js:47747:20)
at async CAC. (file:///home/linuxuser/my-vue-app/node_modules/vite/dist/node/cli.js:822:9)
```
Please, archive this repository if it's really abandoned
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.