evaluate: false
not working / is still evaluating code
#1396
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
bundler: webpack 📦
Issue is related to webpack bundler
needs: complete repro 🖥️
Issue need to have complete repro provided
Environment
Description
When I set
evaluate: false
, I expect Linaria to not evaluate my source code in avm
via the babel transform, and instead to rely on the AST only to do the required transformations and CSS file generation. However, it seems like settingevaluate: false
does not stop linaria from evaluating the source files, which can lead to issues if dependencies are not ready to be statically evaluated like that.This is a really important feature for folks that don't want to or need to have dynamic JS expressions in their
css
template literals, and will speed up builds.Thank you!
The text was updated successfully, but these errors were encountered: