fix: try to deploy as package...

This commit is contained in:
Braks
2021-07-09 21:54:05 +02:00
parent 5eff860573
commit 99548a0dba
39 changed files with 161 additions and 120 deletions
+26 -2
View File
@@ -1,11 +1,35 @@
import { defineConfig } from 'vite';
import { resolve } from 'path';
import vue from '@vitejs/plugin-vue';
import vueJsx from '@vitejs/plugin-vue-jsx';
// https://vitejs.dev/config/
export default defineConfig({
build: { sourcemap: 'inline' },
esbuild: { sourcemap: 'both' },
build: {
lib: {
entry: resolve(__dirname, 'src/index.ts'),
name: 'RevueFlow'
},
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'
},
dir: 'dist',
sourcemap: true,
exports: 'named'
},
inlineDynamicImports: true
}
},
optimizeDeps: {
exclude: ['vue-demi']
},
plugins: [
vue(),
vueJsx({