mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 06:03:22 +08:00
add vue support to rollup
This commit is contained in:
parent
30009df309
commit
c4f677fc93
@ -55,6 +55,7 @@
|
||||
"rollup": "^2.33.1",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"rollup-plugin-typescript2": "^0.29.0",
|
||||
"rollup-plugin-vue": "5",
|
||||
"typedoc": "^0.19.2",
|
||||
"typescript": "^4.0.5",
|
||||
"vue": "^2.6.12"
|
||||
|
@ -6,6 +6,7 @@ import batchPackages from '@lerna/batch-packages'
|
||||
import typescript from 'rollup-plugin-typescript2'
|
||||
import resolve from '@rollup/plugin-node-resolve'
|
||||
import commonjs from '@rollup/plugin-commonjs'
|
||||
import vuePlugin from 'rollup-plugin-vue'
|
||||
import babel from '@rollup/plugin-babel'
|
||||
import { terser } from 'rollup-plugin-terser'
|
||||
import sizes from '@atomico/rollup-plugin-sizes'
|
||||
@ -51,6 +52,7 @@ async function build(commandLineArgs) {
|
||||
},
|
||||
},
|
||||
}),
|
||||
vuePlugin(),
|
||||
babel({
|
||||
babelHelpers: 'bundled',
|
||||
}),
|
||||
@ -96,8 +98,14 @@ async function build(commandLineArgs) {
|
||||
file: path.join(basePath, unpkg),
|
||||
format: 'umd',
|
||||
sourcemap: true,
|
||||
globals: {
|
||||
vue: 'Vue',
|
||||
},
|
||||
},
|
||||
],
|
||||
externals: [
|
||||
'vue',
|
||||
],
|
||||
plugins: [
|
||||
...plugins,
|
||||
terser(),
|
||||
|
Loading…
Reference in New Issue
Block a user