Skip to content

Commit

Permalink
fix: remove pure annotation for custom blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 22, 2021
1 parent cc89de5 commit cd891e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export default function loader(
const query = `?vue&type=custom&index=${i}${blockTypeQuery}${issuerQuery}${attrsQuery}${resourceQuery}`
return (
`import block${i} from ${stringifyRequest(src + query)}\n` +
`if (typeof block${i} === 'function') /*#__PURE__*/block${i}(script)`
`if (typeof block${i} === 'function') block${i}(script)`
)
})
.join(`\n`) + `\n`
Expand Down

0 comments on commit cd891e5

Please sign in to comment.