fix(core): add vite iife build file

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-02-24 20:07:13 +01:00
committed by Braks
parent e10663ad5d
commit a5644c0ead
4 changed files with 71 additions and 4 deletions
+2 -2
View File
@@ -17,10 +17,10 @@ export default defineConfig({
minify: 'esbuild',
emptyOutDir: false,
lib: {
formats: ['es', 'cjs', 'iife'],
formats: ['es', 'cjs'],
entry: resolve(__dirname, 'src/index.ts'),
fileName: 'vue-flow-core',
name: 'vueFlowCore',
name: 'VueFlowCore',
},
rollupOptions: {
// make sure to externalize deps that shouldn't be bundled