Update to Vite v4
parent
70477e05c1
commit
ae67a19233
|
@ -68,7 +68,7 @@
|
|||
"postcss-csso": "^6.0.1",
|
||||
"prettier": "^2.7.1",
|
||||
"size-limit": "^8.1.0",
|
||||
"vite": "^2.8.0"
|
||||
"vite": "^4.0.4"
|
||||
},
|
||||
"browserslist": "> 0.3%, last 2 versions, Firefox ESR, not dead",
|
||||
"size-limit": [
|
||||
|
|
|
@ -10,6 +10,8 @@ export default defineConfig({
|
|||
entry: path.resolve("./src/index.js"),
|
||||
name: "Shareon",
|
||||
formats: ["es", "umd", "iife"],
|
||||
// Workaround to keep the old file names
|
||||
fileName: (format, _) => `shareon.${format}.js`,
|
||||
},
|
||||
rollupOptions: {
|
||||
output: {
|
||||
|
|
Loading…
Reference in New Issue