Skip to content

Commit

Permalink
fix: entry not found --release
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Feb 13, 2025
1 parent a665588 commit 2d04d5f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions packages/vite-plugin-istanbul-widget/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# vite-plugin-istanbul-widget

## 1.9.4
### Patch Changes

- fix: entry not found'

## 1.9.3
### Patch Changes

Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin-istanbul-widget/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-istanbul-widget",
"version": "1.9.3",
"version": "1.9.4",
"description": "集成了 istanbul-widget 和 vite-plugin-istanbul 的vite插件",
"type": "module",
"keywords": [
Expand Down
9 changes: 7 additions & 2 deletions packages/vite-plugin-istanbul-widget/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ export function istanbulWidget(opts: VitePluginIstanbulWidgetOptions): any {
}
} catch {}
}

if (!entryFile) {
console.warn(
'\n[vite-plugin-istanbul-widget]: Entry file not found, please specify the "entry" in the options',
)
}
}
},
},
Expand Down Expand Up @@ -93,8 +99,7 @@ export function istanbulWidget(opts: VitePluginIstanbulWidgetOptions): any {
}

if (isEntry) {
return /*js*/ `
import '${runtimeId}';
return `import '${runtimeId}';
${code}
`
}
Expand Down

0 comments on commit 2d04d5f

Please sign in to comment.