Skip to content

Commit

Permalink
core(router): edit umd build
Browse files Browse the repository at this point in the history
  • Loading branch information
nieyt committed Mar 29, 2024
1 parent fd1bbe2 commit df19a78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion packages/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
],
"scripts": {
"dev": "rollup -c --watch",
"build": "vite build --config vite.config.build.ts && vite build --config vite.config.build-umd.ts && tsc --emitDeclarationOnly",
"build": "vite build --config vite.config.build.ts && vite build --config vite.config.build-umd.ts",
"changelog": "conventional-changelog -p angular -n './changelog-config.cjs' -i CHANGELOG.md -s"
},
"dependencies": {
Expand Down
6 changes: 0 additions & 6 deletions packages/router/vite.config.build-umd.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts'; // 自动生成 .d.ts 类型声明文件


export default defineConfig({
plugins: [
dts({
outDir: 'lib',
}),
],
build: {
lib: {
entry: "./src/index.ts",
Expand Down

0 comments on commit df19a78

Please sign in to comment.