Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
fix: add pure annotations for tree shaking support (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoesburg committed Jul 11, 2021
1 parent 9f80c6b commit 3622dae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Expand Up @@ -50,7 +50,7 @@ const ${cssModuleVar} = {}
${stylesCode}
/* normalize component */
import normalizer from "${vueComponentNormalizer}"
var component = normalizer(
var component = /*#__PURE__*/normalizer(
script,
render,
staticRenderFns,
Expand Down Expand Up @@ -106,7 +106,7 @@ function injectStyles (context) {
map = JSON.parse(emptyMapGen.toString())
}

result += `\nexport default component.exports`
result += `\nexport default /*#__PURE__*/(function () { return component.exports })()`
return {
code: result,
map,
Expand Down

0 comments on commit 3622dae

Please sign in to comment.