Skip to content

Commit

Permalink
fix(rollup): problem with 'css' string in generated files (#712) (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anber committed Dec 8, 2020
1 parent 3ddf4ac commit 02225b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/rollup/src/index.ts
Expand Up @@ -35,7 +35,8 @@ export default function linaria({
if (importee in cssLookup) return importee;
},
transform(code: string, id: string) {
if (!filter(id)) return;
// Do not transform ignored and generated files
if (!filter(id) || id in cssLookup) return;

const result = transform(code, {
filename: id,
Expand Down

0 comments on commit 02225b6

Please sign in to comment.