-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compability for vite 5 #1655
Comments
it's possible to add |
Hi @d-koppenhagen, I'd be happy to make it compatible, but I'm not using using vite 5 so I'm a bit blind on this (for now). I need to check the documentation to understand what would need to be changed. In the meantime, I'd be happy to review any PR of course! :) |
Types and plugin works for me out of the box? This is relevant config for me: /// <reference types="vitest" />
import { defineConfig } from "vite"
import vue from "@vitejs/plugin-vue"
import license from "rollup-plugin-license"
import path from "path"
// https://vitejs.dev/config/
// https://vitest.dev/config/
export default defineConfig({
plugins: [
vue(),
license({
sourcemap: true,
thirdParty: {
output: {
file: path.join(__dirname, "dist", "NOTICE"),
},
},
}),
],
build: {
target: ["esnext"],
},
esbuild: {
legalComments: "none",
},
})
|
I had the same issue, but it was because rollup-plugin-license has rollup as a peer dependency and I hadn't installed it. I'm guessing it would diff with the rollup that Vite was using. After I installed it, it resolved the issue with Vite. |
An update of from vit4 to vite5 shows a type error in my vite.config.ts.
It seems the plugin is not completely compatible (at least the types aren't).
The text was updated successfully, but these errors were encountered: