update: more changes to bundle config...
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"author": "Burak Cakmakoglu",
|
||||
"main": "dist/index.js",
|
||||
"main": "dist/revue-flow.es.js",
|
||||
"module": "dist/revue-flow.es.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
|
||||
@@ -21,6 +21,9 @@ export const baseConfig = ({ injectCSS = true } = {}) => ({
|
||||
}
|
||||
},
|
||||
output: {
|
||||
globals: {
|
||||
'vue-demi': 'VueDemi'
|
||||
},
|
||||
dir: 'dist',
|
||||
sourcemap: true,
|
||||
exports: 'named'
|
||||
|
||||
@@ -10,6 +10,7 @@ export default defineConfig({
|
||||
entry: resolve(__dirname, 'src/index.ts'),
|
||||
name: 'RevueFlow'
|
||||
},
|
||||
sourcemap: true,
|
||||
rollupOptions: {
|
||||
// make sure to externalize deps that shouldn't be bundled
|
||||
// into your library
|
||||
@@ -25,7 +26,11 @@ export default defineConfig({
|
||||
exports: 'named'
|
||||
},
|
||||
inlineDynamicImports: true
|
||||
}
|
||||
},
|
||||
commonjsOptions: {
|
||||
include: 'node_modules/**'
|
||||
},
|
||||
polyfillDynamicImport: true
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: ['vue-demi']
|
||||
|
||||
Reference in New Issue
Block a user