fix(docs): dedupe and add alias for vue
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
+8
-3
@@ -9,13 +9,15 @@ import pkg from './package.json'
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
extensions: ['*', '.ts', '.vue'],
|
||||
dedupe: ['vue'],
|
||||
extensions: ['.ts', '.vue'],
|
||||
},
|
||||
build: {
|
||||
minify: 'terser',
|
||||
emptyOutDir: true,
|
||||
lib: {
|
||||
formats: ['es', 'cjs', 'iife'],
|
||||
entry: resolve(__dirname, 'src/index.ts'),
|
||||
name: 'vue-flow',
|
||||
name: 'vueFlow',
|
||||
},
|
||||
rollupOptions: {
|
||||
// make sure to externalize deps that shouldn't be bundled
|
||||
@@ -45,4 +47,7 @@ export default defineConfig({
|
||||
dts: 'src/auto-imports.d.ts',
|
||||
}),
|
||||
],
|
||||
optimizeDeps: {
|
||||
include: ['vue', '@vueuse/core'],
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user