Closed jcayzac closed 3 months ago
Shouldn't this behavior be governed by Features.ColorFunction
? From the source code, it seems unconditional if the target doesn't support it (I guess it must be using outdated compatibility data).
Hmm even if I enforce the latest versions of caniuse-lite
and @mdn/browser-compat-data
, it still injects it…
With targets: {}
it works.
I've the same problem....
See the docs for how to configure targets: https://lightningcss.dev/transpilation.html#browser-targets
you need chrome: 126 << 16
The
--lightningcss-light/--lightningcss-dark
polyfill always gets generated on 1.25.1, even if I pass:How can I disable that?
light-dark()
is supported by all major browsers, and for chrome specifically since 123.I also didn't expect any transpilation if I disabled all the features. Just minification.