Skip to content

Commit

Permalink
fix: 修复 mitt 依赖导致无法运行的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yue1123 committed Dec 14, 2022
1 parent 2b88791 commit 28c3c6a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions scripts/build-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ function getComponentList() {
fileName = fileName.endsWith('.vue') ? fileName + '.js' : fileName.replace('.ts', '.js')
return {
external(id) {
if (id === 'mitt') {
return false
}
if (id.endsWith('.vue') || id.endsWith('index')) return true
return internalModuleReg.test(id)
},
Expand All @@ -66,9 +63,6 @@ function getTypescriptFilesList() {
return typescriptFiles.map((tsFile) => {
return {
external(id) {
if (/^mitt/.test(id)) {
return false
}
return true
},
input: tsFile,
Expand Down

0 comments on commit 28c3c6a

Please sign in to comment.