fix: size prop can't order corretly.#838
fix: size prop can't order corretly.#838GiveMe-A-Name wants to merge 3 commits intoparcel-bundler:masterfrom
Conversation
|
anyone can review this PR? @devongovett |
|
One problem with this approach is that it assumes that all unparsed properties are valid and supported by all browser targets. Unparsed properties may be things other than values containing variables. Say CSS adds a new unit that lightningcss doesn't support yet. This will result in an unparsed property value, which means we may need to preserve multiple values for unparsed properties. .foo {
width: 200px;
width: 200abc;
width: some-keyword;
}If I think we can do a better job of deduplicating values that are exactly the same, or values that contain |
Example
After lightningcss minify, css code would like this
But it's not expect.
we can maintain the last prop, then delete the repeat prop. Like bellow:
fix: #805