From cd891e593bf7f8aff852f1d47fda2337de661bea Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 22 Sep 2021 11:19:33 -0400 Subject: [PATCH] fix: remove pure annotation for custom blocks --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 43eae6979..0dcd1471b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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`