Skip to content

Commit

Permalink
build(deps): add unbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
mufeng889 committed Jul 25, 2024
1 parent fb198eb commit 0f667cf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineBuildConfig } from 'unbuild';

export default defineBuildConfig({
entries: ['src/index', 'src/vite', 'src/webpack', 'src/rollup', 'src/esbuild'],
clean: true,
declaration: true,
externals: ['esbuild', 'vite', 'webpack', 'rollup', 'vue-router'],
rollup: {
emitCJS: true,
inlineDependencies: true,
esbuild: {
minify: true
}
}
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"homepage": "https://github.com/soybeanjs/elegant-router",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build": "pnpm typecheck && pnpm unbuild",
"preview": "vite preview",
"cleanup": "soy cleanup",
"commit": "soy git-commit",
Expand Down

0 comments on commit 0f667cf

Please sign in to comment.