Dear maintainers, I'm trying to migrate a mid-size NextJS project from styled-components. Things work, but the builds (both initial and incremental) take me many minutes, which prevents me from using the lib. Could you give me a hint? What am I doing wrong? I don't have a good reproducible example because it's only happening in my project, much bigger than the boilerplates I could find.
Dear maintainers, I'm trying to migrate a mid-size NextJS project from styled-components. Things work, but the builds (both initial and incremental) take me many minutes, which prevents me from using the lib. Could you give me a hint? What am I doing wrong? I don't have a good reproducible example because it's only happening in my project, much bigger than the boilerplates I could find.
Additional info:
There's just 1 file barely using linaria:
After I put a
console.log(this.filename, options);
here inevaluate.js
https://github.com/callstack/linaria/blob/master/src/babel/evaluate.js#L158, I got nothing but the same output repeating many times in my console:Hardly something interesting in my configs:
Does that mean that linaria is parsing the same code multiple times? Am I doing something wrong? I would appreciate any help.