Skip to content

Commit a3c28be

Browse files
committed
Make Vue external in rollup
1 parent 94ad4aa commit a3c28be

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build/rollup.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ const globals = {
1515
vue: 'Vue'
1616
}
1717

18+
const external = ['vue']
19+
1820
const componentName = 'VueFlowForm'
1921

2022
export default [
2123
{
2224
input: 'src/main.js',
25+
external,
2326
output: {
2427
name: componentName,
2528
exports: 'named',
@@ -63,6 +66,7 @@ export default [
6366
},
6467
{
6568
input: 'src/main.js',
69+
external,
6670
output: {
6771
name: componentName,
6872
exports: 'named',
@@ -103,6 +107,7 @@ export default [
103107
},
104108
{
105109
input: 'src/main.js',
110+
external,
106111
output: {
107112
name: componentName,
108113
exports: 'named',
@@ -143,6 +148,7 @@ export default [
143148
},
144149
{
145150
input: 'src/main.js',
151+
external,
146152
output: {
147153
name: componentName,
148154
exports: 'named',

0 commit comments

Comments
 (0)