Atomic atomizer running before custom preprocessor #1411
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
6.2.0
v20.8.0
windows 11
Description
I am using a SCSS preprocessor (with great success), but getting errors when trying out the
@linaria/atomic
package.I think, and created a small test which I believe confirms this, that the atomizer is running before the preprocessor (which naturally causes problems since all the SCSS needs to be compiled together, after which it can be safely atomized).
Simple example below showing the SCSS variable is not compiled when the atomizer is ran, resulting in
color: $purple-900;
being split out before SCSS can compile it alongside the variable declaration.Reproducible Demo
Use the a custom preprocessor alongside
@linaria/atomic
.The text was updated successfully, but these errors were encountered: