Skip to content

Commit

Permalink
fix: temporary fix for #1723
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Sep 9, 2020
1 parent a2262ce commit 9f6dd23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ export function selectBlock(

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

0 comments on commit 9f6dd23

Please sign in to comment.