ci: improve size script

This commit is contained in:
Evan You
2021-09-23 14:46:16 -04:00
parent c1cf26d207
commit f27a98becc
6 changed files with 26 additions and 12 deletions

View File

@@ -2,10 +2,10 @@
"name": "@vue/size-check",
"version": "3.2.16",
"private": true,
"buildOptions": {
"name": "Vue",
"formats": [
"global"
]
"scripts": {
"build": "vite build"
},
"devDependencies": {
"vite": "^2.5.10"
}
}

View File

@@ -1,4 +1,4 @@
import { h, createApp } from '@vue/runtime-dom'
import { h, createApp } from 'vue'
// The bare minimum code required for rendering something to the screen
createApp({

View File

@@ -0,0 +1,10 @@
export default {
build: {
rollupOptions: {
input: ['src/index.ts'],
output: {
entryFileNames: `[name].js`
}
}
}
}