Skip to content

Apply targets when minify is off - #19

Merged
marcoroth merged 1 commit into
mainfrom
apply-targets-without-minify
Oct 14, 2026
Merged

marcoroth merged 1 commit into
mainfrom
apply-targets-without-minify

Conversation

@marcoroth

@marcoroth marcoroth commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

This pull request updates LightningCSS.transform and LightningCSS.bundle to apply targets whether or not minify: true is passed.

Before

LightningCSS.transform(".a { user-select: none }", targets: { safari: 12 }).code
# => ".a {\n  user-select: none;\n}\n"

LightningCSS.transform(".a { color: lab(50% 40 59) }", targets: { chrome: 80 }).code
# => ".a {\n  color: lab(50% 40 59);\n}\n"

After

LightningCSS.transform(".a { user-select: none }", targets: { safari: 12 }).code
# => ".a {\n  -webkit-user-select: none;\n  user-select: none;\n}\n"

LightningCSS.transform(".a { color: lab(50% 40 59) }", targets: { chrome: 80 }).code
# => ".a {\n  color: #bf5702;\n  color: lab(50% 40 59);\n}\n"

Resolves #15

@marcoroth
marcoroth merged commit dd63812 into main Oct 14, 2026
11 checks passed
@marcoroth
marcoroth deleted the apply-targets-without-minify branch October 14, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

targets are ignored unless minify: true

1 participant