chore: add build analyzer

issue #39
This commit is contained in:
mutoe 2021-03-07 15:14:08 +08:00
parent b32f2cb7cd
commit 32bdf9ce90
3 changed files with 11 additions and 1 deletions

View File

@ -46,6 +46,7 @@
"jest": "^26.6.3",
"jsdom": "^16.4.0",
"lint-staged": "^10.5.4",
"rollup-plugin-analyzer": "^4.0.0",
"serve": "^11.3.2",
"ts-jest": "^26.5.1",
"typescript": "~4.2.2",

View File

@ -1,6 +1,7 @@
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
import { defineConfig } from 'vite'
import analyzer from 'rollup-plugin-analyzer'
export default defineConfig({
resolve: {
@ -8,5 +9,8 @@ export default defineConfig({
'src': resolve(__dirname, 'src'),
},
},
plugins: [vue()],
plugins: [
vue(),
analyzer({ summaryOnly: true }),
],
})

View File

@ -5173,6 +5173,11 @@ rimraf@^3.0.0, rimraf@^3.0.2:
dependencies:
glob "^7.1.3"
rollup-plugin-analyzer@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/rollup-plugin-analyzer/-/rollup-plugin-analyzer-4.0.0.tgz#96b757ed64a098b59d72f085319e68cdd86d5798"
integrity sha512-LL9GEt3bkXp6Wa19SNR5MWcvHNMvuTFYg+eYBZN2OIFhSWN+pEJUQXEKu5BsOeABob3x9PDaLKW7w5iOJnsESQ==
rollup@^2.38.5:
version "2.40.0"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.40.0.tgz#efc218eaede7ab590954df50f96195188999c304"