Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
fix: Do not generate style injector code if component has no style
Browse files Browse the repository at this point in the history
  • Loading branch information
znck committed Jul 31, 2018
1 parent ed5874d commit 78a2da3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/assembler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@ export function assembleFromSource(
/* component normalizer */
${normalizeComponent}
/* style inject */
${!compiler.template.optimizeSSR ? createInjector : ''}
${hasStyle && !compiler.template.optimizeSSR ? createInjector : ''}
/* style inject SSR */
${compiler.template.optimizeSSR ? createInjectorSSR : ''}
${hasStyle && compiler.template.optimizeSSR ? createInjectorSSR : ''}
`

Expand Down

0 comments on commit 78a2da3

Please sign in to comment.