Skip to content

Commit

Permalink
fix(build): 更新打包配置,修复打包错误
Browse files Browse the repository at this point in the history
  • Loading branch information
vaebe committed May 29, 2023
1 parent 96eedb4 commit 977688a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 33 deletions.
6 changes: 4 additions & 2 deletions packages/cli/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ const buildSingle = async (name) => {
...baseConfig,
build: {
rollupOptions,
emptyOutDir: true,
lib: {
entry: path.resolve(entryDir, name),
name: 'index',
fileName: 'index',
fileName: (type) => `index.${type}.js`,
formats: ['es', 'umd']
},
outDir: path.resolve(outputDir, name)
Expand All @@ -49,10 +50,11 @@ const buildAll = async () => {
...baseConfig,
build: {
rollupOptions,
emptyOutDir: true,
lib: {
entry: path.resolve(entryDir, 'vue-ccui.ts'),
name: 'VueCcui',
fileName: 'vue-ccui',
fileName: (type) => `vue-ccui.${type}.js`,
formats: ['es', 'umd']
},
outDir: outputDir
Expand Down
31 changes: 0 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 977688a

Please sign in to comment.