feat: updates

This commit is contained in:
qier222 2022-03-17 14:45:04 +08:00
parent 950f72d4e8
commit f54d2ded5c
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
26 changed files with 361 additions and 166 deletions

View file

@ -3,6 +3,7 @@ import { builtinModules } from 'module'
import path from 'path'
import { defineConfig } from 'vite'
import pkg from '../../package.json'
import { visualizer } from 'rollup-plugin-visualizer'
dotenv.config({
path: path.resolve(process.cwd(), '.env'),
@ -25,6 +26,13 @@ export default defineConfig({
...builtinModules,
...Object.keys(pkg.dependencies || {}),
],
plugins: [
visualizer({
filename: './bundle-stats-preload.html',
gzipSize: true,
projectRoot: 'packages/preload',
}),
],
},
},
})