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