update: no vue-2 compatability (doesn't work with current build)

* README.md
This commit is contained in:
Braks
2021-07-10 16:40:50 +02:00
parent 74fc5916aa
commit 150438d08f
5 changed files with 6205 additions and 73 deletions
+1 -22
View File
@@ -1,32 +1,11 @@
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: {
lib: {
entry: resolve(__dirname, 'src/index.ts'),
name: 'RevueFlow'
},
sourcemap: true,
rollupOptions: {
external: ['vue-demi'],
output: {
globals: {
'vue-demi': 'VueDemi'
},
dir: 'dist',
sourcemap: true,
exports: 'named'
},
inlineDynamicImports: true
},
commonjsOptions: {
include: 'node_modules/**'
},
polyfillDynamicImport: true
outDir: 'build'
},
plugins: [
vue(),