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

Commit

Permalink
fix: Inject CSS module tokens even when css is not present (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
znck authored May 9, 2018
1 parent 1252c2f commit 05c5210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assembler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function assembleFromSource(
template = template || { source: '' }

const hasScopedStyle = styles.some(style => style.scoped === true)
const hasStyle = styles.some(style => Boolean(style.source))
const hasStyle = styles.some(style => (style.source || style.module))
const e = (any: any): string => JSON.stringify(any)
const createImport = (name: string, value: string) =>
value.startsWith('~')
Expand Down

0 comments on commit 05c5210

Please sign in to comment.