add vue support to rollup

This commit is contained in:
Philipp Kühn 2020-11-10 12:43:09 +01:00
parent 30009df309
commit c4f677fc93
3 changed files with 566 additions and 44 deletions

View File

@ -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"

View File

@ -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(),

601
yarn.lock

File diff suppressed because it is too large Load Diff