update: use vue-demi again to add compatability to vue2

* add vite.config.app.ts for demo generation
This commit is contained in:
Braks
2021-07-10 11:51:12 +02:00
parent 6a5496c60f
commit 92caccfd6e
39 changed files with 67 additions and 42 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ const processEnv = isProd || isTesting ? 'production' : 'development';
export const baseConfig = ({ injectCSS = true } = {}) => ({
input: 'src/index.ts',
external: ['vue', (id) => id.includes('@babel/runtime')],
external: ['vue-demi', (id) => id.includes('@babel/runtime')],
onwarn(warning, rollupWarn) {
if (warning.code !== 'CIRCULAR_DEPENDENCY') {
rollupWarn(warning);