.
This commit is contained in:
parent
9b2651d5c7
commit
05f5f950cb
31 changed files with 4997 additions and 4176 deletions
|
|
@ -1,11 +1,8 @@
|
|||
|
||||
|
||||
|
||||
import path from "node:path"
|
||||
import { defineConfig } from "vite"
|
||||
import vue from "@vitejs/plugin-vue"
|
||||
import vuetify from "vite-plugin-vuetify"
|
||||
import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js"
|
||||
import path from "node:path"
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
|
|
@ -29,12 +26,17 @@ export default defineConfig({
|
|||
fileName: (format) => `eli-vue.${format}.js`,
|
||||
},
|
||||
rollupOptions: {
|
||||
// não bundle o Vue
|
||||
external: ["vue", /^vuetify(\/.*)?$/],
|
||||
// não bundle o Vue, Vuetify nem Leaflet
|
||||
external: (id) => {
|
||||
if (id === "vue" || id === "leaflet") return true
|
||||
if (id === "vuetify" || id.startsWith("vuetify/")) return true
|
||||
return false
|
||||
},
|
||||
output: {
|
||||
globals: {
|
||||
vue: "Vue",
|
||||
vuetify: "Vuetify",
|
||||
leaflet: "L",
|
||||
},
|
||||
exports: "named",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue