UNPKG

codemirror5-inline-suggestion

Version:

An extension to display inline suggestion in CodeMirror v5

29 lines (26 loc) 709 B
import { dirname, resolve } from "node:path"; import { fileURLToPath } from "node:url"; import { defineConfig } from "vite"; const __dirname = dirname(fileURLToPath(import.meta.url)); export default defineConfig({ build: { lib: { entry: resolve(__dirname, "lib/main.js"), name: "MyLib", // the proper extensions will be added fileName: "my-lib", }, 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", }, }, }, }, });