UNPKG

vue3-mediaelement

Version:

Vue3 MediaElement Video Player

28 lines (27 loc) 732 B
import { defineConfig } from "vite"; import vue from "@vitejs/plugin-vue"; const path = require("path"); // https://vitejs.dev/config/ export default defineConfig({ build: { lib: { entry: path.resolve(__dirname, "src/index.ts"), name: "vue3-mediaelement", // the proper extensions will be added fileName: (format) => `vue3-mediaelement.${format}.ts`, }, rollupOptions: { // make sure to externalize deps that shouldn't be bundled // into your library external: ["vue"], output: { // Provide global variables to use in the UMD build // for externalized deps globals: { vue: "Vue", }, }, }, }, plugins: [vue()], });