Skip to content

Commit

Permalink
fix: injected scripts maybe undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Oct 30, 2023
1 parent 6ccbf65 commit 062325a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/plugins/inject-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export type Scripts = (manifest: Record<string, string>) => Omit<HtmlTagDescript

function generateScriptTags(scripts: Scripts) {
const _scripts = scripts(getManifest())
const tags: HtmlTagDescriptor[] = _scripts.map((s) => ({
const tags: HtmlTagDescriptor[] = _scripts?.map((s) => ({
...s,
attrs: {
crossorigin: true,
Expand Down

0 comments on commit 062325a

Please sign in to comment.