Skip to content

Commit 9f6dd23

Browse files
committed
fix: temporary fix for #1723
1 parent a2262ce commit 9f6dd23

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/select.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ export function selectBlock(
2222

2323
// script
2424
if (query.type === `script`) {
25-
const script = (descriptor as any).scriptCompiled
25+
// FIXME: #1723
26+
// I still don't know when & why `scriptCompiled` would be empty
27+
// need to work out a better fix later
28+
const script = (descriptor as any).scriptCompiled || descriptor.script
2629
if (appendExtension) {
2730
loaderContext.resourcePath += '.' + (script.lang || 'js')
2831
}

0 commit comments

Comments
 (0)