yak-swc 9.9.0 → 9.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitignore +3 -0
- package/CHANGELOG.md +345 -0
- package/Cargo.lock +3513 -0
- package/Cargo.toml +32 -0
- package/css_in_js_parser/CHANGELOG.md +10 -0
- package/css_in_js_parser/Cargo.toml +18 -0
- package/css_in_js_parser/LICENSE +21 -0
- package/css_in_js_parser/README.md +89 -0
- package/css_in_js_parser/examples/basic_usage.rs +18 -0
- package/css_in_js_parser/examples/resume_state.rs +51 -0
- package/css_in_js_parser/src/find_char.rs +148 -0
- package/css_in_js_parser/src/lib.rs +8 -0
- package/css_in_js_parser/src/parse_css.rs +541 -0
- package/css_in_js_parser/src/snapshots/css_in_js_parser__parse_css__tests__parse_css_complete_css_with_media_rule.snap +87 -0
- package/css_in_js_parser/src/snapshots/css_in_js_parser__parse_css__tests__parse_css_incomplete_css_1.snap +47 -0
- package/css_in_js_parser/src/snapshots/css_in_js_parser__parse_css__tests__parse_css_incomplete_css_1_ending_inside_a_comment.snap +31 -0
- package/css_in_js_parser/src/snapshots/css_in_js_parser__parse_css__tests__parse_css_incomplete_css_1_ending_inside_a_double_quote_string.snap +33 -0
- package/css_in_js_parser/src/snapshots/css_in_js_parser__parse_css__tests__parse_css_incomplete_css_1_ending_inside_a_string.snap +33 -0
- package/css_in_js_parser/src/snapshots/css_in_js_parser__parse_css__tests__parse_css_incomplete_css_1_ending_inside_parens_string.snap +31 -0
- package/css_in_js_parser/src/snapshots/css_in_js_parser__parse_css__tests__parse_css_incomplete_css_1_ending_outside_a_comment.snap +31 -0
- package/css_in_js_parser/src/snapshots/css_in_js_parser__parse_css__tests__parse_css_incomplete_css_1_with_media_rule.snap +78 -0
- package/css_in_js_parser/src/snapshots/css_in_js_parser__parse_css__tests__parse_css_incomplete_css_ending_without_semicolon.snap +27 -0
- package/css_in_js_parser/src/snapshots/css_in_js_parser__parse_css__tests__parse_css_resume_incomplete_css_ending_without_semicolon.snap +59 -0
- package/css_in_js_parser/src/snapshots/css_in_js_parser__parse_css__tests__parse_css_starting_with_an_invalid_curly.snap +27 -0
- package/css_in_js_parser/src/snapshots/css_in_js_parser__to_css__tests__handles_escapes_correctly.snap +8 -0
- package/css_in_js_parser/src/snapshots/css_in_js_parser__to_css__tests__parse_css_combine_two_independent_css_chunks.snap +11 -0
- package/css_in_js_parser/src/snapshots/css_in_js_parser__to_css__tests__parse_css_incomplete_css_1.snap +10 -0
- package/css_in_js_parser/src/snapshots/css_in_js_parser__to_css__tests__parse_css_merge_two_css_chunks.snap +12 -0
- package/css_in_js_parser/src/snapshots/css_in_js_parser__to_css__tests__parse_css_merge_two_css_chunks_and_inject_a_scope.snap +17 -0
- package/css_in_js_parser/src/to_css.rs +334 -0
- package/package.json +3 -3
- package/relative_posix_path/CHANGELOG.md +5 -0
- package/relative_posix_path/Cargo.toml +16 -0
- package/relative_posix_path/LICENSE +21 -0
- package/relative_posix_path/README.md +50 -0
- package/relative_posix_path/examples/posix_usage.rs +9 -0
- package/relative_posix_path/examples/windows_usage.rs +9 -0
- package/relative_posix_path/src/lib.rs +113 -0
- package/rust-toolchain.toml +9 -0
- package/rustfmt.toml +2 -0
- package/scripts/test-wasm-fixtures.mts +331 -0
- package/target/wasm32-wasip1/release/yak_swc.wasm +0 -0
- package/yak_swc/Cargo.toml +39 -0
- package/yak_swc/benches/extension_detection.rs +119 -0
- package/yak_swc/src/lib.rs +1786 -0
- package/yak_swc/src/math_evaluate.rs +368 -0
- package/yak_swc/src/naming_convention.rs +364 -0
- package/yak_swc/src/plugin.rs +43 -0
- package/yak_swc/src/utils/add_suffix_to_expr.rs +25 -0
- package/yak_swc/src/utils/ast_helper.rs +208 -0
- package/yak_swc/src/utils/cross_file_selectors.rs +265 -0
- package/yak_swc/src/utils/css_hash.rs +119 -0
- package/yak_swc/src/utils/css_variable_dedup.rs +297 -0
- package/yak_swc/src/utils/fold/css_expr.rs +288 -0
- package/yak_swc/src/utils/fold/css_prop.rs +464 -0
- package/yak_swc/src/utils/fold/mod.rs +539 -0
- package/yak_swc/src/utils/fold/purity.rs +399 -0
- package/yak_swc/src/utils/fold/usage.rs +1293 -0
- package/yak_swc/src/utils/native_elements.rs +145 -0
- package/yak_swc/src/variable_visitor.rs +602 -0
- package/yak_swc/src/yak_file.rs +215 -0
- package/yak_swc/src/yak_imports.rs +569 -0
- package/yak_swc/src/yak_transforms.rs +695 -0
- package/yak_swc/tests/fixture/attrs/input.tsx +15 -0
- package/yak_swc/tests/fixture/attrs/output.dev.tsx +22 -0
- package/yak_swc/tests/fixture/attrs/output.prod.tsx +20 -0
- package/yak_swc/tests/fixture/attrs/output.turbo.dev.tsx +22 -0
- package/yak_swc/tests/fixture/attrs/output.turbo.prod.tsx +20 -0
- package/yak_swc/tests/fixture/attrs-on-function-component/input.tsx +5 -0
- package/yak_swc/tests/fixture/attrs-on-function-component/output.dev.tsx +11 -0
- package/yak_swc/tests/fixture/attrs-on-function-component/output.prod.tsx +9 -0
- package/yak_swc/tests/fixture/attrs-on-function-component/output.turbo.dev.tsx +11 -0
- package/yak_swc/tests/fixture/attrs-on-function-component/output.turbo.prod.tsx +9 -0
- package/yak_swc/tests/fixture/basic-styled-component/input.tsx +15 -0
- package/yak_swc/tests/fixture/basic-styled-component/output.dev.tsx +20 -0
- package/yak_swc/tests/fixture/basic-styled-component/output.prod.tsx +18 -0
- package/yak_swc/tests/fixture/basic-styled-component/output.turbo.dev.tsx +20 -0
- package/yak_swc/tests/fixture/basic-styled-component/output.turbo.prod.tsx +18 -0
- package/yak_swc/tests/fixture/comments/input.tsx +11 -0
- package/yak_swc/tests/fixture/comments/output.dev.tsx +12 -0
- package/yak_swc/tests/fixture/comments/output.prod.tsx +10 -0
- package/yak_swc/tests/fixture/comments/output.turbo.dev.tsx +12 -0
- package/yak_swc/tests/fixture/comments/output.turbo.prod.tsx +10 -0
- package/yak_swc/tests/fixture/complex-nested-structure/input.tsx +62 -0
- package/yak_swc/tests/fixture/complex-nested-structure/output.dev.tsx +58 -0
- package/yak_swc/tests/fixture/complex-nested-structure/output.prod.tsx +56 -0
- package/yak_swc/tests/fixture/complex-nested-structure/output.turbo.dev.tsx +58 -0
- package/yak_swc/tests/fixture/complex-nested-structure/output.turbo.prod.tsx +56 -0
- package/yak_swc/tests/fixture/constants/input.tsx +37 -0
- package/yak_swc/tests/fixture/constants/output.dev.tsx +40 -0
- package/yak_swc/tests/fixture/constants/output.prod.tsx +38 -0
- package/yak_swc/tests/fixture/constants/output.turbo.dev.tsx +40 -0
- package/yak_swc/tests/fixture/constants/output.turbo.prod.tsx +38 -0
- package/yak_swc/tests/fixture/cross-file-constants/input.tsx +18 -0
- package/yak_swc/tests/fixture/cross-file-constants/output.dev.tsx +23 -0
- package/yak_swc/tests/fixture/cross-file-constants/output.prod.tsx +21 -0
- package/yak_swc/tests/fixture/cross-file-constants/output.turbo.dev.tsx +23 -0
- package/yak_swc/tests/fixture/cross-file-constants/output.turbo.prod.tsx +21 -0
- package/yak_swc/tests/fixture/cross-file-mixin-dynamic-export/input.tsx +35 -0
- package/yak_swc/tests/fixture/cross-file-mixin-dynamic-export/output.dev.stderr +11 -0
- package/yak_swc/tests/fixture/cross-file-mixin-dynamic-export/output.dev.tsx +57 -0
- package/yak_swc/tests/fixture/cross-file-mixin-dynamic-export/output.prod.stderr +11 -0
- package/yak_swc/tests/fixture/cross-file-mixin-dynamic-export/output.prod.tsx +55 -0
- package/yak_swc/tests/fixture/cross-file-mixin-dynamic-export/output.stderr +11 -0
- package/yak_swc/tests/fixture/cross-file-mixin-dynamic-export/output.turbo.dev.stderr +11 -0
- package/yak_swc/tests/fixture/cross-file-mixin-dynamic-export/output.turbo.dev.tsx +57 -0
- package/yak_swc/tests/fixture/cross-file-mixin-dynamic-export/output.turbo.prod.stderr +11 -0
- package/yak_swc/tests/fixture/cross-file-mixin-dynamic-export/output.turbo.prod.tsx +55 -0
- package/yak_swc/tests/fixture/cross-file-mixin-export/input.tsx +46 -0
- package/yak_swc/tests/fixture/cross-file-mixin-export/output.dev.tsx +50 -0
- package/yak_swc/tests/fixture/cross-file-mixin-export/output.prod.tsx +48 -0
- package/yak_swc/tests/fixture/cross-file-mixin-export/output.turbo.dev.tsx +50 -0
- package/yak_swc/tests/fixture/cross-file-mixin-export/output.turbo.prod.tsx +48 -0
- package/yak_swc/tests/fixture/cross-file-mixin-import/input.tsx +48 -0
- package/yak_swc/tests/fixture/cross-file-mixin-import/output.dev.tsx +73 -0
- package/yak_swc/tests/fixture/cross-file-mixin-import/output.prod.tsx +59 -0
- package/yak_swc/tests/fixture/cross-file-mixin-import/output.turbo.dev.tsx +73 -0
- package/yak_swc/tests/fixture/cross-file-mixin-import/output.turbo.prod.tsx +59 -0
- package/yak_swc/tests/fixture/cross-file-selectors/input.tsx +16 -0
- package/yak_swc/tests/fixture/cross-file-selectors/output.dev.tsx +20 -0
- package/yak_swc/tests/fixture/cross-file-selectors/output.prod.tsx +18 -0
- package/yak_swc/tests/fixture/cross-file-selectors/output.turbo.dev.tsx +20 -0
- package/yak_swc/tests/fixture/cross-file-selectors/output.turbo.prod.tsx +18 -0
- package/yak_swc/tests/fixture/css-grid-layout/input.tsx +65 -0
- package/yak_swc/tests/fixture/css-grid-layout/output.dev.tsx +62 -0
- package/yak_swc/tests/fixture/css-grid-layout/output.prod.tsx +60 -0
- package/yak_swc/tests/fixture/css-grid-layout/output.turbo.dev.tsx +62 -0
- package/yak_swc/tests/fixture/css-grid-layout/output.turbo.prod.tsx +60 -0
- package/yak_swc/tests/fixture/css-import-order/input.tsx +12 -0
- package/yak_swc/tests/fixture/css-import-order/output.dev.tsx +16 -0
- package/yak_swc/tests/fixture/css-import-order/output.prod.tsx +14 -0
- package/yak_swc/tests/fixture/css-import-order/output.turbo.dev.tsx +16 -0
- package/yak_swc/tests/fixture/css-import-order/output.turbo.prod.tsx +14 -0
- package/yak_swc/tests/fixture/css-mixin/input.tsx +27 -0
- package/yak_swc/tests/fixture/css-mixin/output.dev.tsx +75 -0
- package/yak_swc/tests/fixture/css-mixin/output.prod.tsx +71 -0
- package/yak_swc/tests/fixture/css-mixin/output.turbo.dev.tsx +75 -0
- package/yak_swc/tests/fixture/css-mixin/output.turbo.prod.tsx +71 -0
- package/yak_swc/tests/fixture/css-mixin-inline/input.tsx +14 -0
- package/yak_swc/tests/fixture/css-mixin-inline/output.dev.tsx +17 -0
- package/yak_swc/tests/fixture/css-mixin-inline/output.prod.tsx +15 -0
- package/yak_swc/tests/fixture/css-mixin-inline/output.turbo.dev.tsx +17 -0
- package/yak_swc/tests/fixture/css-mixin-inline/output.turbo.prod.tsx +15 -0
- package/yak_swc/tests/fixture/css-mixin-nested/input.tsx +26 -0
- package/yak_swc/tests/fixture/css-mixin-nested/output.dev.tsx +73 -0
- package/yak_swc/tests/fixture/css-mixin-nested/output.prod.tsx +69 -0
- package/yak_swc/tests/fixture/css-mixin-nested/output.turbo.dev.tsx +73 -0
- package/yak_swc/tests/fixture/css-mixin-nested/output.turbo.prod.tsx +69 -0
- package/yak_swc/tests/fixture/css-mixin-yak-file/input.yak.tsx +40 -0
- package/yak_swc/tests/fixture/css-mixin-yak-file/output.yak.tsx +50 -0
- package/yak_swc/tests/fixture/css-mixin-yak-file-error/input.yak.tsx +40 -0
- package/yak_swc/tests/fixture/css-mixin-yak-file-error/output.yak.stderr +7 -0
- package/yak_swc/tests/fixture/css-mixin-yak-file-error/output.yak.tsx +50 -0
- package/yak_swc/tests/fixture/css-prop/input.tsx +155 -0
- package/yak_swc/tests/fixture/css-prop/output.dev.tsx +117 -0
- package/yak_swc/tests/fixture/css-prop/output.prod.tsx +115 -0
- package/yak_swc/tests/fixture/css-prop/output.turbo.dev.tsx +117 -0
- package/yak_swc/tests/fixture/css-prop/output.turbo.prod.tsx +115 -0
- package/yak_swc/tests/fixture/css-prop-conditional/input.tsx +207 -0
- package/yak_swc/tests/fixture/css-prop-conditional/output.dev.tsx +169 -0
- package/yak_swc/tests/fixture/css-prop-conditional/output.prod.tsx +169 -0
- package/yak_swc/tests/fixture/css-prop-conditional/output.turbo.dev.tsx +169 -0
- package/yak_swc/tests/fixture/css-prop-conditional/output.turbo.prod.tsx +169 -0
- package/yak_swc/tests/fixture/css-prop-fold-bailouts/config.json +3 -0
- package/yak_swc/tests/fixture/css-prop-fold-bailouts/input.tsx +67 -0
- package/yak_swc/tests/fixture/css-prop-fold-bailouts/output.dev.tsx +54 -0
- package/yak_swc/tests/fixture/css-prop-fold-bailouts/output.prod.tsx +54 -0
- package/yak_swc/tests/fixture/css-prop-fold-bailouts/output.turbo.dev.tsx +54 -0
- package/yak_swc/tests/fixture/css-prop-fold-bailouts/output.turbo.prod.tsx +54 -0
- package/yak_swc/tests/fixture/css-prop-folding-tricky/config.json +3 -0
- package/yak_swc/tests/fixture/css-prop-folding-tricky/input.tsx +97 -0
- package/yak_swc/tests/fixture/css-prop-folding-tricky/output.dev.tsx +80 -0
- package/yak_swc/tests/fixture/css-prop-folding-tricky/output.prod.tsx +80 -0
- package/yak_swc/tests/fixture/css-prop-folding-tricky/output.turbo.dev.tsx +80 -0
- package/yak_swc/tests/fixture/css-prop-folding-tricky/output.turbo.prod.tsx +80 -0
- package/yak_swc/tests/fixture/css-prop-in-exported-component/input.tsx +12 -0
- package/yak_swc/tests/fixture/css-prop-in-exported-component/output.dev.tsx +10 -0
- package/yak_swc/tests/fixture/css-prop-in-exported-component/output.prod.tsx +10 -0
- package/yak_swc/tests/fixture/css-prop-in-exported-component/output.turbo.dev.tsx +10 -0
- package/yak_swc/tests/fixture/css-prop-in-exported-component/output.turbo.prod.tsx +10 -0
- package/yak_swc/tests/fixture/css-prop-invalid/input.tsx +5 -0
- package/yak_swc/tests/fixture/css-prop-invalid/output.dev.stderr +14 -0
- package/yak_swc/tests/fixture/css-prop-invalid/output.dev.tsx +4 -0
- package/yak_swc/tests/fixture/css-prop-invalid/output.prod.stderr +14 -0
- package/yak_swc/tests/fixture/css-prop-invalid/output.prod.tsx +4 -0
- package/yak_swc/tests/fixture/css-prop-invalid/output.turbo.dev.stderr +14 -0
- package/yak_swc/tests/fixture/css-prop-invalid/output.turbo.dev.tsx +4 -0
- package/yak_swc/tests/fixture/css-prop-invalid/output.turbo.prod.stderr +14 -0
- package/yak_swc/tests/fixture/css-prop-invalid/output.turbo.prod.tsx +4 -0
- package/yak_swc/tests/fixture/css-prop-invalid-values/input.tsx +28 -0
- package/yak_swc/tests/fixture/css-prop-invalid-values/output.dev.stderr +75 -0
- package/yak_swc/tests/fixture/css-prop-invalid-values/output.dev.tsx +26 -0
- package/yak_swc/tests/fixture/css-prop-invalid-values/output.prod.stderr +75 -0
- package/yak_swc/tests/fixture/css-prop-invalid-values/output.prod.tsx +26 -0
- package/yak_swc/tests/fixture/css-prop-invalid-values/output.turbo.dev.stderr +75 -0
- package/yak_swc/tests/fixture/css-prop-invalid-values/output.turbo.dev.tsx +26 -0
- package/yak_swc/tests/fixture/css-prop-invalid-values/output.turbo.prod.stderr +75 -0
- package/yak_swc/tests/fixture/css-prop-invalid-values/output.turbo.prod.tsx +26 -0
- package/yak_swc/tests/fixture/css-prop-nested/input.tsx +22 -0
- package/yak_swc/tests/fixture/css-prop-nested/output.dev.tsx +22 -0
- package/yak_swc/tests/fixture/css-prop-nested/output.prod.tsx +22 -0
- package/yak_swc/tests/fixture/css-prop-nested/output.turbo.dev.tsx +22 -0
- package/yak_swc/tests/fixture/css-prop-nested/output.turbo.prod.tsx +22 -0
- package/yak_swc/tests/fixture/css-prop-non-strict/config.json +3 -0
- package/yak_swc/tests/fixture/css-prop-non-strict/input.tsx +28 -0
- package/yak_swc/tests/fixture/css-prop-non-strict/output.dev.tsx +33 -0
- package/yak_swc/tests/fixture/css-prop-non-strict/output.prod.tsx +33 -0
- package/yak_swc/tests/fixture/css-prop-non-strict/output.turbo.dev.tsx +33 -0
- package/yak_swc/tests/fixture/css-prop-non-strict/output.turbo.prod.tsx +33 -0
- package/yak_swc/tests/fixture/css-prop-style-reference/input.tsx +38 -0
- package/yak_swc/tests/fixture/css-prop-style-reference/output.dev.stderr +36 -0
- package/yak_swc/tests/fixture/css-prop-style-reference/output.dev.tsx +29 -0
- package/yak_swc/tests/fixture/css-prop-style-reference/output.prod.stderr +36 -0
- package/yak_swc/tests/fixture/css-prop-style-reference/output.prod.tsx +29 -0
- package/yak_swc/tests/fixture/css-prop-style-reference/output.turbo.dev.stderr +36 -0
- package/yak_swc/tests/fixture/css-prop-style-reference/output.turbo.dev.tsx +29 -0
- package/yak_swc/tests/fixture/css-prop-style-reference/output.turbo.prod.stderr +36 -0
- package/yak_swc/tests/fixture/css-prop-style-reference/output.turbo.prod.tsx +29 -0
- package/yak_swc/tests/fixture/css-prop-ternary/config.json +3 -0
- package/yak_swc/tests/fixture/css-prop-ternary/input.tsx +95 -0
- package/yak_swc/tests/fixture/css-prop-ternary/output.dev.tsx +81 -0
- package/yak_swc/tests/fixture/css-prop-ternary/output.prod.tsx +81 -0
- package/yak_swc/tests/fixture/css-prop-ternary/output.turbo.dev.tsx +81 -0
- package/yak_swc/tests/fixture/css-prop-ternary/output.turbo.prod.tsx +81 -0
- package/yak_swc/tests/fixture/css-prop-with-atoms/input.tsx +45 -0
- package/yak_swc/tests/fixture/css-prop-with-atoms/output.dev.tsx +42 -0
- package/yak_swc/tests/fixture/css-prop-with-atoms/output.prod.tsx +40 -0
- package/yak_swc/tests/fixture/css-prop-with-atoms/output.turbo.dev.tsx +42 -0
- package/yak_swc/tests/fixture/css-prop-with-atoms/output.turbo.prod.tsx +40 -0
- package/yak_swc/tests/fixture/css-prop-with-atoms-simple/input.tsx +3 -0
- package/yak_swc/tests/fixture/css-prop-with-atoms-simple/output.dev.tsx +2 -0
- package/yak_swc/tests/fixture/css-prop-with-atoms-simple/output.prod.tsx +2 -0
- package/yak_swc/tests/fixture/css-prop-with-atoms-simple/output.turbo.dev.tsx +2 -0
- package/yak_swc/tests/fixture/css-prop-with-atoms-simple/output.turbo.prod.tsx +2 -0
- package/yak_swc/tests/fixture/css-variables/input.tsx +21 -0
- package/yak_swc/tests/fixture/css-variables/output.dev.tsx +28 -0
- package/yak_swc/tests/fixture/css-variables/output.prod.tsx +24 -0
- package/yak_swc/tests/fixture/css-variables/output.turbo.dev.tsx +28 -0
- package/yak_swc/tests/fixture/css-variables/output.turbo.prod.tsx +24 -0
- package/yak_swc/tests/fixture/default-export-hoisted/input.tsx +8 -0
- package/yak_swc/tests/fixture/default-export-hoisted/output.dev.tsx +12 -0
- package/yak_swc/tests/fixture/default-export-hoisted/output.prod.tsx +10 -0
- package/yak_swc/tests/fixture/default-export-hoisted/output.turbo.dev.tsx +12 -0
- package/yak_swc/tests/fixture/default-export-hoisted/output.turbo.prod.tsx +10 -0
- package/yak_swc/tests/fixture/default-export-inline/input.tsx +6 -0
- package/yak_swc/tests/fixture/default-export-inline/output.dev.tsx +11 -0
- package/yak_swc/tests/fixture/default-export-inline/output.prod.tsx +9 -0
- package/yak_swc/tests/fixture/default-export-inline/output.turbo.dev.tsx +11 -0
- package/yak_swc/tests/fixture/default-export-inline/output.turbo.prod.tsx +9 -0
- package/yak_swc/tests/fixture/default-export-mixed/input.tsx +19 -0
- package/yak_swc/tests/fixture/default-export-mixed/output.dev.tsx +33 -0
- package/yak_swc/tests/fixture/default-export-mixed/output.prod.tsx +27 -0
- package/yak_swc/tests/fixture/default-export-mixed/output.turbo.dev.tsx +33 -0
- package/yak_swc/tests/fixture/default-export-mixed/output.turbo.prod.tsx +27 -0
- package/yak_swc/tests/fixture/default-export-mixin/input.tsx +11 -0
- package/yak_swc/tests/fixture/default-export-mixin/output.dev.tsx +14 -0
- package/yak_swc/tests/fixture/default-export-mixin/output.prod.tsx +14 -0
- package/yak_swc/tests/fixture/default-export-mixin/output.turbo.dev.tsx +14 -0
- package/yak_swc/tests/fixture/default-export-mixin/output.turbo.prod.tsx +14 -0
- package/yak_swc/tests/fixture/default-export-mixin-inline/input.tsx +9 -0
- package/yak_swc/tests/fixture/default-export-mixin-inline/output.dev.tsx +8 -0
- package/yak_swc/tests/fixture/default-export-mixin-inline/output.prod.tsx +8 -0
- package/yak_swc/tests/fixture/default-export-mixin-inline/output.turbo.dev.tsx +8 -0
- package/yak_swc/tests/fixture/default-export-mixin-inline/output.turbo.prod.tsx +8 -0
- package/yak_swc/tests/fixture/default-export-nested/input.tsx +8 -0
- package/yak_swc/tests/fixture/default-export-nested/output.dev.tsx +13 -0
- package/yak_swc/tests/fixture/default-export-nested/output.prod.tsx +11 -0
- package/yak_swc/tests/fixture/default-export-nested/output.turbo.dev.tsx +13 -0
- package/yak_swc/tests/fixture/default-export-nested/output.turbo.prod.tsx +11 -0
- package/yak_swc/tests/fixture/default-export-with-cross-file-reference/input.tsx +14 -0
- package/yak_swc/tests/fixture/default-export-with-cross-file-reference/output.dev.tsx +26 -0
- package/yak_swc/tests/fixture/default-export-with-cross-file-reference/output.prod.tsx +24 -0
- package/yak_swc/tests/fixture/default-export-with-cross-file-reference/output.turbo.dev.tsx +26 -0
- package/yak_swc/tests/fixture/default-export-with-cross-file-reference/output.turbo.prod.tsx +24 -0
- package/yak_swc/tests/fixture/duplicate-expressions/input.tsx +74 -0
- package/yak_swc/tests/fixture/duplicate-expressions/output.dev.tsx +146 -0
- package/yak_swc/tests/fixture/duplicate-expressions/output.prod.tsx +126 -0
- package/yak_swc/tests/fixture/duplicate-expressions/output.turbo.dev.tsx +146 -0
- package/yak_swc/tests/fixture/duplicate-expressions/output.turbo.prod.tsx +126 -0
- package/yak_swc/tests/fixture/dynamic-at-rule-error/input.tsx +11 -0
- package/yak_swc/tests/fixture/dynamic-at-rule-error/output.dev.stderr +12 -0
- package/yak_swc/tests/fixture/dynamic-at-rule-error/output.dev.tsx +15 -0
- package/yak_swc/tests/fixture/dynamic-at-rule-error/output.prod.stderr +12 -0
- package/yak_swc/tests/fixture/dynamic-at-rule-error/output.prod.tsx +13 -0
- package/yak_swc/tests/fixture/dynamic-at-rule-error/output.turbo.dev.stderr +12 -0
- package/yak_swc/tests/fixture/dynamic-at-rule-error/output.turbo.dev.tsx +15 -0
- package/yak_swc/tests/fixture/dynamic-at-rule-error/output.turbo.prod.stderr +12 -0
- package/yak_swc/tests/fixture/dynamic-at-rule-error/output.turbo.prod.tsx +13 -0
- package/yak_swc/tests/fixture/dynamic-prop-error/input.tsx +7 -0
- package/yak_swc/tests/fixture/dynamic-prop-error/output.dev.stderr +16 -0
- package/yak_swc/tests/fixture/dynamic-prop-error/output.dev.tsx +17 -0
- package/yak_swc/tests/fixture/dynamic-prop-error/output.prod.stderr +16 -0
- package/yak_swc/tests/fixture/dynamic-prop-error/output.prod.tsx +15 -0
- package/yak_swc/tests/fixture/dynamic-prop-error/output.turbo.dev.stderr +16 -0
- package/yak_swc/tests/fixture/dynamic-prop-error/output.turbo.dev.tsx +17 -0
- package/yak_swc/tests/fixture/dynamic-prop-error/output.turbo.prod.stderr +16 -0
- package/yak_swc/tests/fixture/dynamic-prop-error/output.turbo.prod.tsx +15 -0
- package/yak_swc/tests/fixture/dynamic-string-content/input.tsx +28 -0
- package/yak_swc/tests/fixture/dynamic-string-content/output.dev.tsx +52 -0
- package/yak_swc/tests/fixture/dynamic-string-content/output.prod.tsx +46 -0
- package/yak_swc/tests/fixture/dynamic-string-content/output.turbo.dev.tsx +52 -0
- package/yak_swc/tests/fixture/dynamic-string-content/output.turbo.prod.tsx +46 -0
- package/yak_swc/tests/fixture/emit-css-comments-off/config.json +3 -0
- package/yak_swc/tests/fixture/emit-css-comments-off/input.tsx +16 -0
- package/yak_swc/tests/fixture/emit-css-comments-off/output.dev.tsx +12 -0
- package/yak_swc/tests/fixture/emit-css-comments-off/output.prod.tsx +8 -0
- package/yak_swc/tests/fixture/emit-css-comments-off/output.turbo.dev.tsx +12 -0
- package/yak_swc/tests/fixture/emit-css-comments-off/output.turbo.prod.tsx +8 -0
- package/yak_swc/tests/fixture/empty-styled-as-selector/input.tsx +11 -0
- package/yak_swc/tests/fixture/empty-styled-as-selector/output.dev.tsx +17 -0
- package/yak_swc/tests/fixture/empty-styled-as-selector/output.prod.tsx +13 -0
- package/yak_swc/tests/fixture/empty-styled-as-selector/output.turbo.dev.tsx +17 -0
- package/yak_swc/tests/fixture/empty-styled-as-selector/output.turbo.prod.tsx +13 -0
- package/yak_swc/tests/fixture/empty-styled-component/input.tsx +3 -0
- package/yak_swc/tests/fixture/empty-styled-component/output.dev.tsx +5 -0
- package/yak_swc/tests/fixture/empty-styled-component/output.prod.tsx +3 -0
- package/yak_swc/tests/fixture/empty-styled-component/output.turbo.dev.tsx +5 -0
- package/yak_swc/tests/fixture/empty-styled-component/output.turbo.prod.tsx +3 -0
- package/yak_swc/tests/fixture/encoded/input.tsx +13 -0
- package/yak_swc/tests/fixture/encoded/output.dev.tsx +17 -0
- package/yak_swc/tests/fixture/encoded/output.prod.tsx +15 -0
- package/yak_swc/tests/fixture/encoded/output.turbo.dev.tsx +17 -0
- package/yak_swc/tests/fixture/encoded/output.turbo.prod.tsx +15 -0
- package/yak_swc/tests/fixture/extending-styles/input.tsx +25 -0
- package/yak_swc/tests/fixture/extending-styles/output.dev.tsx +36 -0
- package/yak_swc/tests/fixture/extending-styles/output.prod.tsx +30 -0
- package/yak_swc/tests/fixture/extending-styles/output.turbo.dev.tsx +36 -0
- package/yak_swc/tests/fixture/extending-styles/output.turbo.prod.tsx +30 -0
- package/yak_swc/tests/fixture/function-on-component/input.tsx +5 -0
- package/yak_swc/tests/fixture/function-on-component/output.dev.tsx +12 -0
- package/yak_swc/tests/fixture/function-on-component/output.prod.tsx +10 -0
- package/yak_swc/tests/fixture/function-on-component/output.turbo.dev.tsx +12 -0
- package/yak_swc/tests/fixture/function-on-component/output.turbo.prod.tsx +10 -0
- package/yak_swc/tests/fixture/global-style/error-dynamic-value/input.tsx +7 -0
- package/yak_swc/tests/fixture/global-style/error-dynamic-value/output.dev.stderr +12 -0
- package/yak_swc/tests/fixture/global-style/error-dynamic-value/output.dev.tsx +2 -0
- package/yak_swc/tests/fixture/global-style/error-dynamic-value/output.prod.stderr +12 -0
- package/yak_swc/tests/fixture/global-style/error-dynamic-value/output.prod.tsx +2 -0
- package/yak_swc/tests/fixture/global-style/error-dynamic-value/output.turbo.dev.stderr +12 -0
- package/yak_swc/tests/fixture/global-style/error-dynamic-value/output.turbo.dev.tsx +2 -0
- package/yak_swc/tests/fixture/global-style/error-dynamic-value/output.turbo.prod.stderr +12 -0
- package/yak_swc/tests/fixture/global-style/error-dynamic-value/output.turbo.prod.tsx +2 -0
- package/yak_swc/tests/fixture/global-style/error-nested/input.tsx +10 -0
- package/yak_swc/tests/fixture/global-style/error-nested/output.dev.stderr +10 -0
- package/yak_swc/tests/fixture/global-style/error-nested/output.dev.tsx +9 -0
- package/yak_swc/tests/fixture/global-style/error-nested/output.prod.stderr +10 -0
- package/yak_swc/tests/fixture/global-style/error-nested/output.prod.tsx +9 -0
- package/yak_swc/tests/fixture/global-style/error-nested/output.turbo.dev.stderr +10 -0
- package/yak_swc/tests/fixture/global-style/error-nested/output.turbo.dev.tsx +9 -0
- package/yak_swc/tests/fixture/global-style/error-nested/output.turbo.prod.stderr +10 -0
- package/yak_swc/tests/fixture/global-style/error-nested/output.turbo.prod.tsx +9 -0
- package/yak_swc/tests/fixture/global-style/only-global/input.tsx +9 -0
- package/yak_swc/tests/fixture/global-style/only-global/output.dev.tsx +9 -0
- package/yak_swc/tests/fixture/global-style/only-global/output.prod.tsx +9 -0
- package/yak_swc/tests/fixture/global-style/only-global/output.turbo.dev.tsx +9 -0
- package/yak_swc/tests/fixture/global-style/only-global/output.turbo.prod.tsx +9 -0
- package/yak_swc/tests/fixture/global-style/static/input.tsx +25 -0
- package/yak_swc/tests/fixture/global-style/static/output.dev.tsx +21 -0
- package/yak_swc/tests/fixture/global-style/static/output.prod.tsx +21 -0
- package/yak_swc/tests/fixture/global-style/static/output.turbo.dev.tsx +21 -0
- package/yak_swc/tests/fixture/global-style/static/output.turbo.prod.tsx +21 -0
- package/yak_swc/tests/fixture/global-style/with-authored-layer/input.tsx +15 -0
- package/yak_swc/tests/fixture/global-style/with-authored-layer/output.dev.tsx +14 -0
- package/yak_swc/tests/fixture/global-style/with-authored-layer/output.prod.tsx +14 -0
- package/yak_swc/tests/fixture/global-style/with-authored-layer/output.turbo.dev.tsx +14 -0
- package/yak_swc/tests/fixture/global-style/with-authored-layer/output.turbo.prod.tsx +14 -0
- package/yak_swc/tests/fixture/global-style/with-class-selector/input.tsx +11 -0
- package/yak_swc/tests/fixture/global-style/with-class-selector/output.dev.tsx +11 -0
- package/yak_swc/tests/fixture/global-style/with-class-selector/output.prod.tsx +11 -0
- package/yak_swc/tests/fixture/global-style/with-class-selector/output.turbo.dev.tsx +11 -0
- package/yak_swc/tests/fixture/global-style/with-class-selector/output.turbo.prod.tsx +11 -0
- package/yak_swc/tests/fixture/global-style/with-component-selector/input.tsx +11 -0
- package/yak_swc/tests/fixture/global-style/with-component-selector/output.dev.tsx +15 -0
- package/yak_swc/tests/fixture/global-style/with-component-selector/output.prod.tsx +13 -0
- package/yak_swc/tests/fixture/global-style/with-component-selector/output.turbo.dev.tsx +15 -0
- package/yak_swc/tests/fixture/global-style/with-component-selector/output.turbo.prod.tsx +13 -0
- package/yak_swc/tests/fixture/global-style/with-constants/input.tsx +20 -0
- package/yak_swc/tests/fixture/global-style/with-constants/output.dev.tsx +15 -0
- package/yak_swc/tests/fixture/global-style/with-constants/output.prod.tsx +15 -0
- package/yak_swc/tests/fixture/global-style/with-constants/output.turbo.dev.tsx +15 -0
- package/yak_swc/tests/fixture/global-style/with-constants/output.turbo.prod.tsx +15 -0
- package/yak_swc/tests/fixture/global-style/with-font-face/input.tsx +19 -0
- package/yak_swc/tests/fixture/global-style/with-font-face/output.dev.tsx +18 -0
- package/yak_swc/tests/fixture/global-style/with-font-face/output.prod.tsx +18 -0
- package/yak_swc/tests/fixture/global-style/with-font-face/output.turbo.dev.tsx +18 -0
- package/yak_swc/tests/fixture/global-style/with-font-face/output.turbo.prod.tsx +18 -0
- package/yak_swc/tests/fixture/global-style/with-keyframes/input.tsx +16 -0
- package/yak_swc/tests/fixture/global-style/with-keyframes/output.dev.tsx +17 -0
- package/yak_swc/tests/fixture/global-style/with-keyframes/output.prod.tsx +17 -0
- package/yak_swc/tests/fixture/global-style/with-keyframes/output.turbo.dev.tsx +17 -0
- package/yak_swc/tests/fixture/global-style/with-keyframes/output.turbo.prod.tsx +17 -0
- package/yak_swc/tests/fixture/keyframe-animations/input.tsx +16 -0
- package/yak_swc/tests/fixture/keyframe-animations/output.dev.tsx +22 -0
- package/yak_swc/tests/fixture/keyframe-animations/output.prod.tsx +20 -0
- package/yak_swc/tests/fixture/keyframe-animations/output.turbo.dev.tsx +22 -0
- package/yak_swc/tests/fixture/keyframe-animations/output.turbo.prod.tsx +20 -0
- package/yak_swc/tests/fixture/keyframe-animations-function/input.tsx +30 -0
- package/yak_swc/tests/fixture/keyframe-animations-function/output.dev.tsx +37 -0
- package/yak_swc/tests/fixture/keyframe-animations-function/output.prod.tsx +35 -0
- package/yak_swc/tests/fixture/keyframe-animations-function/output.turbo.dev.tsx +37 -0
- package/yak_swc/tests/fixture/keyframe-animations-function/output.turbo.prod.tsx +35 -0
- package/yak_swc/tests/fixture/keyframe-animations-object/input.tsx +58 -0
- package/yak_swc/tests/fixture/keyframe-animations-object/output.dev.tsx +69 -0
- package/yak_swc/tests/fixture/keyframe-animations-object/output.prod.tsx +65 -0
- package/yak_swc/tests/fixture/keyframe-animations-object/output.turbo.dev.tsx +69 -0
- package/yak_swc/tests/fixture/keyframe-animations-object/output.turbo.prod.tsx +65 -0
- package/yak_swc/tests/fixture/keyframes-nested-error/input.tsx +12 -0
- package/yak_swc/tests/fixture/keyframes-nested-error/output.dev.stderr +13 -0
- package/yak_swc/tests/fixture/keyframes-nested-error/output.dev.tsx +7 -0
- package/yak_swc/tests/fixture/keyframes-nested-error/output.prod.stderr +13 -0
- package/yak_swc/tests/fixture/keyframes-nested-error/output.prod.tsx +5 -0
- package/yak_swc/tests/fixture/keyframes-nested-error/output.stderr +13 -0
- package/yak_swc/tests/fixture/keyframes-nested-error/output.turbo.dev.stderr +13 -0
- package/yak_swc/tests/fixture/keyframes-nested-error/output.turbo.dev.tsx +7 -0
- package/yak_swc/tests/fixture/keyframes-nested-error/output.turbo.prod.stderr +13 -0
- package/yak_swc/tests/fixture/keyframes-nested-error/output.turbo.prod.tsx +5 -0
- package/yak_swc/tests/fixture/media-queries/input.tsx +16 -0
- package/yak_swc/tests/fixture/media-queries/output.dev.tsx +19 -0
- package/yak_swc/tests/fixture/media-queries/output.prod.tsx +17 -0
- package/yak_swc/tests/fixture/media-queries/output.turbo.dev.tsx +19 -0
- package/yak_swc/tests/fixture/media-queries/output.turbo.prod.tsx +17 -0
- package/yak_swc/tests/fixture/member-property-runtime-values/input.tsx +18 -0
- package/yak_swc/tests/fixture/member-property-runtime-values/output.dev.tsx +40 -0
- package/yak_swc/tests/fixture/member-property-runtime-values/output.prod.tsx +36 -0
- package/yak_swc/tests/fixture/member-property-runtime-values/output.turbo.dev.tsx +40 -0
- package/yak_swc/tests/fixture/member-property-runtime-values/output.turbo.prod.tsx +36 -0
- package/yak_swc/tests/fixture/mixing-with-tailwind/input.tsx +5 -0
- package/yak_swc/tests/fixture/mixing-with-tailwind/output.dev.tsx +7 -0
- package/yak_swc/tests/fixture/mixing-with-tailwind/output.prod.tsx +5 -0
- package/yak_swc/tests/fixture/mixing-with-tailwind/output.turbo.dev.tsx +7 -0
- package/yak_swc/tests/fixture/mixing-with-tailwind/output.turbo.prod.tsx +5 -0
- package/yak_swc/tests/fixture/mixing-with-tailwind-error/input.tsx +8 -0
- package/yak_swc/tests/fixture/mixing-with-tailwind-error/output.dev.stderr +7 -0
- package/yak_swc/tests/fixture/mixing-with-tailwind-error/output.dev.tsx +7 -0
- package/yak_swc/tests/fixture/mixing-with-tailwind-error/output.prod.stderr +7 -0
- package/yak_swc/tests/fixture/mixing-with-tailwind-error/output.prod.tsx +5 -0
- package/yak_swc/tests/fixture/mixing-with-tailwind-error/output.stderr +7 -0
- package/yak_swc/tests/fixture/mixing-with-tailwind-error/output.turbo.dev.stderr +7 -0
- package/yak_swc/tests/fixture/mixing-with-tailwind-error/output.turbo.dev.tsx +7 -0
- package/yak_swc/tests/fixture/mixing-with-tailwind-error/output.turbo.prod.stderr +7 -0
- package/yak_swc/tests/fixture/mixing-with-tailwind-error/output.turbo.prod.tsx +5 -0
- package/yak_swc/tests/fixture/multiple-styled-components/input.tsx +18 -0
- package/yak_swc/tests/fixture/multiple-styled-components/output.dev.tsx +31 -0
- package/yak_swc/tests/fixture/multiple-styled-components/output.prod.tsx +23 -0
- package/yak_swc/tests/fixture/multiple-styled-components/output.turbo.dev.tsx +31 -0
- package/yak_swc/tests/fixture/multiple-styled-components/output.turbo.prod.tsx +23 -0
- package/yak_swc/tests/fixture/nested-dynamic-mixin/input.tsx +21 -0
- package/yak_swc/tests/fixture/nested-dynamic-mixin/output.dev.stderr +11 -0
- package/yak_swc/tests/fixture/nested-dynamic-mixin/output.dev.tsx +28 -0
- package/yak_swc/tests/fixture/nested-dynamic-mixin/output.prod.stderr +11 -0
- package/yak_swc/tests/fixture/nested-dynamic-mixin/output.prod.tsx +26 -0
- package/yak_swc/tests/fixture/nested-dynamic-mixin/output.turbo.dev.stderr +11 -0
- package/yak_swc/tests/fixture/nested-dynamic-mixin/output.turbo.dev.tsx +28 -0
- package/yak_swc/tests/fixture/nested-dynamic-mixin/output.turbo.prod.stderr +11 -0
- package/yak_swc/tests/fixture/nested-dynamic-mixin/output.turbo.prod.tsx +26 -0
- package/yak_swc/tests/fixture/nested-selectors/input.tsx +34 -0
- package/yak_swc/tests/fixture/nested-selectors/output.dev.tsx +35 -0
- package/yak_swc/tests/fixture/nested-selectors/output.prod.tsx +33 -0
- package/yak_swc/tests/fixture/nested-selectors/output.turbo.dev.tsx +35 -0
- package/yak_swc/tests/fixture/nested-selectors/output.turbo.prod.tsx +33 -0
- package/yak_swc/tests/fixture/no-yak/input.tsx +7 -0
- package/yak_swc/tests/fixture/no-yak/output.dev.tsx +6 -0
- package/yak_swc/tests/fixture/no-yak/output.prod.tsx +6 -0
- package/yak_swc/tests/fixture/no-yak/output.turbo.dev.tsx +6 -0
- package/yak_swc/tests/fixture/no-yak/output.turbo.prod.tsx +6 -0
- package/yak_swc/tests/fixture/no-yak-usage/input.tsx +5 -0
- package/yak_swc/tests/fixture/no-yak-usage/output.dev.tsx +3 -0
- package/yak_swc/tests/fixture/no-yak-usage/output.prod.tsx +3 -0
- package/yak_swc/tests/fixture/no-yak-usage/output.turbo.dev.tsx +3 -0
- package/yak_swc/tests/fixture/no-yak-usage/output.turbo.prod.tsx +3 -0
- package/yak_swc/tests/fixture/object-literal-variable-names/input.tsx +10 -0
- package/yak_swc/tests/fixture/object-literal-variable-names/output.dev.tsx +27 -0
- package/yak_swc/tests/fixture/object-literal-variable-names/output.prod.tsx +23 -0
- package/yak_swc/tests/fixture/object-literal-variable-names/output.turbo.dev.tsx +27 -0
- package/yak_swc/tests/fixture/object-literal-variable-names/output.turbo.prod.tsx +23 -0
- package/yak_swc/tests/fixture/parens/input.tsx +10 -0
- package/yak_swc/tests/fixture/parens/output.dev.tsx +22 -0
- package/yak_swc/tests/fixture/parens/output.prod.tsx +20 -0
- package/yak_swc/tests/fixture/parens/output.turbo.dev.tsx +22 -0
- package/yak_swc/tests/fixture/parens/output.turbo.prod.tsx +20 -0
- package/yak_swc/tests/fixture/props-and-dynamic-styles/input.tsx +13 -0
- package/yak_swc/tests/fixture/props-and-dynamic-styles/output.dev.tsx +32 -0
- package/yak_swc/tests/fixture/props-and-dynamic-styles/output.prod.tsx +30 -0
- package/yak_swc/tests/fixture/props-and-dynamic-styles/output.turbo.dev.tsx +32 -0
- package/yak_swc/tests/fixture/props-and-dynamic-styles/output.turbo.prod.tsx +30 -0
- package/yak_swc/tests/fixture/solid-folding/config.json +3 -0
- package/yak_swc/tests/fixture/solid-folding/input.tsx +75 -0
- package/yak_swc/tests/fixture/solid-folding/output.dev.tsx +80 -0
- package/yak_swc/tests/fixture/solid-folding/output.prod.tsx +70 -0
- package/yak_swc/tests/fixture/solid-folding/output.turbo.dev.tsx +80 -0
- package/yak_swc/tests/fixture/solid-folding/output.turbo.prod.tsx +70 -0
- package/yak_swc/tests/fixture/solid-import-source/input.tsx +21 -0
- package/yak_swc/tests/fixture/solid-import-source/output.dev.tsx +34 -0
- package/yak_swc/tests/fixture/solid-import-source/output.prod.tsx +30 -0
- package/yak_swc/tests/fixture/solid-import-source/output.turbo.dev.tsx +34 -0
- package/yak_swc/tests/fixture/solid-import-source/output.turbo.prod.tsx +30 -0
- package/yak_swc/tests/fixture/styled-componets/input.tsx +15 -0
- package/yak_swc/tests/fixture/styled-componets/output.dev.tsx +18 -0
- package/yak_swc/tests/fixture/styled-componets/output.prod.tsx +16 -0
- package/yak_swc/tests/fixture/styled-componets/output.turbo.dev.tsx +18 -0
- package/yak_swc/tests/fixture/styled-componets/output.turbo.prod.tsx +16 -0
- package/yak_swc/tests/fixture/styled-jsx-dynamic-folding/config.json +3 -0
- package/yak_swc/tests/fixture/styled-jsx-dynamic-folding/input.tsx +318 -0
- package/yak_swc/tests/fixture/styled-jsx-dynamic-folding/output.dev.tsx +426 -0
- package/yak_swc/tests/fixture/styled-jsx-dynamic-folding/output.prod.tsx +372 -0
- package/yak_swc/tests/fixture/styled-jsx-dynamic-folding/output.turbo.dev.tsx +426 -0
- package/yak_swc/tests/fixture/styled-jsx-dynamic-folding/output.turbo.prod.tsx +372 -0
- package/yak_swc/tests/fixture/styled-jsx-folding/config.json +3 -0
- package/yak_swc/tests/fixture/styled-jsx-folding/input.tsx +212 -0
- package/yak_swc/tests/fixture/styled-jsx-folding/output.dev.tsx +294 -0
- package/yak_swc/tests/fixture/styled-jsx-folding/output.prod.tsx +240 -0
- package/yak_swc/tests/fixture/styled-jsx-folding/output.turbo.dev.tsx +294 -0
- package/yak_swc/tests/fixture/styled-jsx-folding/output.turbo.prod.tsx +240 -0
- package/yak_swc/tests/fixture/styled-jsx-folding-string-attrs/config.json +3 -0
- package/yak_swc/tests/fixture/styled-jsx-folding-string-attrs/input.tsx +42 -0
- package/yak_swc/tests/fixture/styled-jsx-folding-string-attrs/output.dev.tsx +49 -0
- package/yak_swc/tests/fixture/styled-jsx-folding-string-attrs/output.prod.tsx +41 -0
- package/yak_swc/tests/fixture/styled-jsx-folding-string-attrs/output.turbo.dev.tsx +49 -0
- package/yak_swc/tests/fixture/styled-jsx-folding-string-attrs/output.turbo.prod.tsx +41 -0
- package/yak_swc/tests/fixture/styled-jsx-folding-tricky/config.json +3 -0
- package/yak_swc/tests/fixture/styled-jsx-folding-tricky/input.tsx +126 -0
- package/yak_swc/tests/fixture/styled-jsx-folding-tricky/output.dev.tsx +135 -0
- package/yak_swc/tests/fixture/styled-jsx-folding-tricky/output.prod.tsx +121 -0
- package/yak_swc/tests/fixture/styled-jsx-folding-tricky/output.turbo.dev.tsx +135 -0
- package/yak_swc/tests/fixture/styled-jsx-folding-tricky/output.turbo.prod.tsx +121 -0
- package/yak_swc/tests/fixture/theming-with-context/input.tsx +9 -0
- package/yak_swc/tests/fixture/theming-with-context/output.dev.tsx +19 -0
- package/yak_swc/tests/fixture/theming-with-context/output.prod.tsx +17 -0
- package/yak_swc/tests/fixture/theming-with-context/output.turbo.dev.tsx +19 -0
- package/yak_swc/tests/fixture/theming-with-context/output.turbo.prod.tsx +17 -0
- package/yak_swc/tests/fixture/transform-only-known-elements/input.tsx +13 -0
- package/yak_swc/tests/fixture/transform-only-known-elements/output.dev.tsx +24 -0
- package/yak_swc/tests/fixture/transform-only-known-elements/output.prod.tsx +18 -0
- package/yak_swc/tests/fixture/transform-only-known-elements/output.tsx +12 -0
- package/yak_swc/tests/fixture/transform-only-known-elements/output.turbo.dev.tsx +24 -0
- package/yak_swc/tests/fixture/transform-only-known-elements/output.turbo.prod.tsx +18 -0
- package/yak_swc/tests/fixture/two-styled-components/input.tsx +17 -0
- package/yak_swc/tests/fixture/two-styled-components/output.dev.tsx +31 -0
- package/yak_swc/tests/fixture/two-styled-components/output.prod.tsx +23 -0
- package/yak_swc/tests/fixture/two-styled-components/output.turbo.dev.tsx +31 -0
- package/yak_swc/tests/fixture/two-styled-components/output.turbo.prod.tsx +23 -0
- package/yak_swc/tests/fixture/typecast-in-static-analysis/input.tsx +32 -0
- package/yak_swc/tests/fixture/typecast-in-static-analysis/output.dev.tsx +54 -0
- package/yak_swc/tests/fixture/typecast-in-static-analysis/output.prod.tsx +44 -0
- package/yak_swc/tests/fixture/typecast-in-static-analysis/output.turbo.dev.tsx +54 -0
- package/yak_swc/tests/fixture/typecast-in-static-analysis/output.turbo.prod.tsx +44 -0
- package/yak_swc/tests/fixture/typecast-styled-component/input.tsx +38 -0
- package/yak_swc/tests/fixture/typecast-styled-component/output.dev.tsx +51 -0
- package/yak_swc/tests/fixture/typecast-styled-component/output.prod.tsx +45 -0
- package/yak_swc/tests/fixture/typecast-styled-component/output.turbo.dev.tsx +51 -0
- package/yak_swc/tests/fixture/typecast-styled-component/output.turbo.prod.tsx +45 -0
package/.gitignore
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
# yak-swc
|
|
2
|
+
|
|
3
|
+
## 9.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 71b8d7b: Update dependencies and publish the direct dependencies with semver ranges instead of exact pins
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 5c80c54: Fix an issue where a css prop combined with a spread didn't hydrate on SolidJS.
|
|
12
|
+
|
|
13
|
+
## 9.9.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- d7be766: Add support for `SolidJS` together with the new `@yak/solid` package
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 63847f8: Reject `css` prop values which can not apply styles (e.g. `css={[a, b]}` or `css={{ color: "red" }}`)
|
|
22
|
+
- 1a5a828: Folding a static styled component into a plain element now removes all `$`-prefixed props
|
|
23
|
+
|
|
24
|
+
## 9.8.0
|
|
25
|
+
|
|
26
|
+
### Minor Changes
|
|
27
|
+
|
|
28
|
+
- 9efbae5: Interpolations of the same function in one styled component now share a single CSS variable, so the function runs once per render and the element carries fewer inline style entries.
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- 1060025: CSS variables of styled components declared in object literals now carry the full path in development, e.g. `--buttons_primary__color` instead of `--buttons__color-01`.
|
|
33
|
+
|
|
34
|
+
## 9.7.0
|
|
35
|
+
|
|
36
|
+
### Minor Changes
|
|
37
|
+
|
|
38
|
+
- eebca6f: Fold statically known css props into a plain `className` at build time instead of emitting a per-render `__yak_mergeCssProp` call, e.g. `<div css={css`color: red`} />` becomes `<div className="yX" />` and conditional styles become `className={"yX" + (on ? " yX1" : "")}`. Elements with an existing `className`, spread props or dynamic values keep the runtime merge path unchanged, as does every css prop when `foldStatic: false`; a css prop that references a mixin is a compile error.
|
|
39
|
+
- eebca6f: The css prop now rejects a reference to styles declared elsewhere (`css={mixin}`) with a compile error. Wrap the reference in a css template instead: `css={css`${mixin}`}`. Such a reference compiles to nothing at the usage, so it silently rendered unstyled.
|
|
40
|
+
- 67b8875: Add JSX folding: a usage of a styled component declared in the same file compiles to a plain element, skipping the runtime wrapper. Rendering gets considerably faster, and nothing needs configuring.
|
|
41
|
+
|
|
42
|
+
```tsx
|
|
43
|
+
const Icon = styled.span<{ $active?: boolean }>`
|
|
44
|
+
min-height: 24px;
|
|
45
|
+
${({ $active }) =>
|
|
46
|
+
$active &&
|
|
47
|
+
css`
|
|
48
|
+
color: red;
|
|
49
|
+
`}
|
|
50
|
+
`;
|
|
51
|
+
const App = () => <Icon $active={on} />;
|
|
52
|
+
|
|
53
|
+
// compiles to
|
|
54
|
+
const App = () => <span className={"yak-icon" + (on ? " yak-icon--active" : "")} />;
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
What folds:
|
|
58
|
+
|
|
59
|
+
- A fully static component folds to its plain element.
|
|
60
|
+
- `styled(Component)` folds to the wrapped component, which may be imported.
|
|
61
|
+
- A fully static `styled(Parent)` chain collapses to the base element, at any depth, with the class names merged parent-first. The declaration flattens too, so an exported chain ships one wrapper and its unused base components drop out.
|
|
62
|
+
|
|
63
|
+
What keeps the runtime path: spread props, a `theme` prop, dynamic css values, `.attrs()`, and components not declared as a top-level `const`. A chain also stays a chain when its parent is dynamic, imported, or bound with `let`.
|
|
64
|
+
|
|
65
|
+
Set `foldStatic: false` to turn folding off; it also gates the css prop fold.
|
|
66
|
+
|
|
67
|
+
Caveats: a folded usage is no longer a component, so it does not appear in React DevTools or component stacks, and `child.type === Icon` no longer matches it. Foreign `$props` on a folded usage are forwarded to the element, not stripped. Prop expressions still run the same number of times, in the same order, as the original JSX — except in code React's purity rule already forbids: an unread `$prop` is dropped without running, and a getter behind a member read (`$a={obj.x}`) can fire once per condition. The FAQ has the full rules.
|
|
68
|
+
|
|
69
|
+
### Patch Changes
|
|
70
|
+
|
|
71
|
+
- 011ace5: A `className` string next to a `css` prop kept its JSX encoding: `className="Food & Drink"` rendered the entity into the DOM class, and a backslash class like `before:content-['\2713']` broke the build with a SyntaxError. The value now reaches the DOM exactly as written.
|
|
72
|
+
- eebca6f: Drop empty css props at build time instead of emitting a dead class name, e.g. `<div css={css``} />` becomes `<div />` and an empty ternary arm folds to `""`. A nested empty ` css` `` also folds to an empty class name instead of keeping the whole css prop on the runtime merge path.
|
|
73
|
+
- 06a6c95: A folded `className` merge keeps the user's class name exactly as written: backslashes, HTML entities and emoji reach the DOM byte for byte.
|
|
74
|
+
|
|
75
|
+
## 9.6.0
|
|
76
|
+
|
|
77
|
+
### Minor Changes
|
|
78
|
+
|
|
79
|
+
- 00e5021: Add `globalStyle` to write global styles that are extracted at build time and apply once the file is imported
|
|
80
|
+
|
|
81
|
+
## 9.5.1
|
|
82
|
+
|
|
83
|
+
### Patch Changes
|
|
84
|
+
|
|
85
|
+
- 056b4d9: Fix a stray `/*#__PURE__*/` on inlined `css` mixins that could make a bundler tree-shake away an entire export under the wasm plugin
|
|
86
|
+
- 056b4d9: Emit the default-export marker for styled components exported through a TS cast (e.g. `export default Page as typeof Page`) so cross-file default imports resolve correctly
|
|
87
|
+
- 280f4c9: Add a `strictCssProp` option (default `true`) that fails the build on a `css` prop next-yak can't handle. Turn it off to leave unrecognized `css` props untouched, e.g. when another library on the same element uses its own `css` prop. Invalid `css` props are now left in place rather than silently stripped.
|
|
88
|
+
|
|
89
|
+
## 9.5.0
|
|
90
|
+
|
|
91
|
+
### Minor Changes
|
|
92
|
+
|
|
93
|
+
- c9bd2de: Update dependencies
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- 5d40a77: Fix building the SWC plugin on Rust 1.96+ and upgrade swc_core from 56.0.0 to 68.0.6.
|
|
98
|
+
|
|
99
|
+
Rust 1.96 removed the implicit `--allow-undefined` for wasm targets, which broke linking the plugin (`undefined symbol: __set_transform_result`). The wasm build now passes the link-arg explicitly, the Rust toolchain is pinned via `rust-toolchain.toml`, and swc_core (plus the separately pinned swc crates) moved to the current major. No behavior changes — all transform snapshots are unchanged.
|
|
100
|
+
|
|
101
|
+
## 9.4.2
|
|
102
|
+
|
|
103
|
+
### Patch Changes
|
|
104
|
+
|
|
105
|
+
- df860c9: Fix dynamic interpolations wrapped in CSS string quotes (e.g. `content: "${(p) => p.$x}"`)
|
|
106
|
+
- 07d80d0: Fix typecasts (`as unknown as ...`) breaking cross-file selectors, mixin inlining and keyframes references.
|
|
107
|
+
- f18484e: TypeScript casts (`as`, `as const`, `!`, `satisfies`, parens) inside CSS interpolations no longer prevent values from being statically inlined.
|
|
108
|
+
- 75beb6b: Emit an error when a dynamic interpolation is used inside an at-rule query.
|
|
109
|
+
- 842c24c: Fix HMR full page reloads for styled-only files by injecting `$RefreshReg$` for exported styled components
|
|
110
|
+
|
|
111
|
+
## 9.4.1
|
|
112
|
+
|
|
113
|
+
## 9.4.0
|
|
114
|
+
|
|
115
|
+
### Patch Changes
|
|
116
|
+
|
|
117
|
+
- caac236: Fix false "Could not parse member expression" error for dynamic computed member access in runtime expressions (e.g. `SIZES[size].width`)
|
|
118
|
+
- f7198df: Skip empty CSS imports
|
|
119
|
+
- e77edd3: Fix referencing components without any styles
|
|
120
|
+
|
|
121
|
+
## 9.3.0
|
|
122
|
+
|
|
123
|
+
## 9.2.0
|
|
124
|
+
|
|
125
|
+
### Patch Changes
|
|
126
|
+
|
|
127
|
+
- bc1f82e: Updated dependencies
|
|
128
|
+
|
|
129
|
+
## 9.1.0
|
|
130
|
+
|
|
131
|
+
### Minor Changes
|
|
132
|
+
|
|
133
|
+
- ddb0e93: Add deprecation warning for `:global()` selectors
|
|
134
|
+
|
|
135
|
+
### Patch Changes
|
|
136
|
+
|
|
137
|
+
- 3e4fc3b: Add experimental vite support
|
|
138
|
+
- 846cc4c: Unified CSS import configuration with placeholder support
|
|
139
|
+
|
|
140
|
+
## 9.0.0
|
|
141
|
+
|
|
142
|
+
### Major Changes
|
|
143
|
+
|
|
144
|
+
- a85dcba: Add support for next.js 16.1.0
|
|
145
|
+
|
|
146
|
+
## 8.0.2
|
|
147
|
+
|
|
148
|
+
## 8.0.1
|
|
149
|
+
|
|
150
|
+
## 8.0.0
|
|
151
|
+
|
|
152
|
+
### Major Changes
|
|
153
|
+
|
|
154
|
+
- 24caa1f: Add limited Turbopack support (Limitation: .yak files can't use `import` statements)
|
|
155
|
+
- 6f84e74: Update to Next.js 16
|
|
156
|
+
|
|
157
|
+
### Minor Changes
|
|
158
|
+
|
|
159
|
+
- 2e43185: Add support for async RSC Yak Theme Contexts (yak.context.ts)
|
|
160
|
+
|
|
161
|
+
### Patch Changes
|
|
162
|
+
|
|
163
|
+
- cea6d53: Allow exporting Yak components as default expressions
|
|
164
|
+
|
|
165
|
+
## 7.0.0
|
|
166
|
+
|
|
167
|
+
### Major Changes
|
|
168
|
+
|
|
169
|
+
- e4d230c: Add support for next.js >= 15.4.4
|
|
170
|
+
|
|
171
|
+
## 6.0.0
|
|
172
|
+
|
|
173
|
+
### Major Changes
|
|
174
|
+
|
|
175
|
+
- 9835170: Update swc_core to be compatible with Next.js 15.4
|
|
176
|
+
|
|
177
|
+
## 5.7.2
|
|
178
|
+
|
|
179
|
+
### Patch Changes
|
|
180
|
+
|
|
181
|
+
- 460a5da: Fixed an issue when only `atoms` are used
|
|
182
|
+
|
|
183
|
+
## 5.7.1
|
|
184
|
+
|
|
185
|
+
## 5.7.0
|
|
186
|
+
|
|
187
|
+
### Minor Changes
|
|
188
|
+
|
|
189
|
+
- eeaae8f: Added support for atoms in CSS prop & enhanced atoms function to manipulate class names and styles in a callback
|
|
190
|
+
|
|
191
|
+
### Patch Changes
|
|
192
|
+
|
|
193
|
+
- 938bca4: Improve typings
|
|
194
|
+
- ab58a54: Added support for constant string and number keys of object in the same file
|
|
195
|
+
|
|
196
|
+
## 5.6.1
|
|
197
|
+
|
|
198
|
+
### Patch Changes
|
|
199
|
+
|
|
200
|
+
- cb02484: Add cross file constant supports also for default or namespace imports
|
|
201
|
+
|
|
202
|
+
## 5.6.0
|
|
203
|
+
|
|
204
|
+
### Minor Changes
|
|
205
|
+
|
|
206
|
+
- 6c859e5: Add new "experiments.transpilationMode" option to transpile to CSS instead of CSS Modules
|
|
207
|
+
- a8fce5a: Make swc plugin integration an enabled-by-default cargo feature (not used in playground)
|
|
208
|
+
|
|
209
|
+
## 5.5.0
|
|
210
|
+
|
|
211
|
+
### Minor Changes
|
|
212
|
+
|
|
213
|
+
- 6ed6e55: Updated all dependencies
|
|
214
|
+
|
|
215
|
+
### Patch Changes
|
|
216
|
+
|
|
217
|
+
- 720e426: Add support for turbopacks relative filepaths
|
|
218
|
+
|
|
219
|
+
## 5.4.0
|
|
220
|
+
|
|
221
|
+
### Minor Changes
|
|
222
|
+
|
|
223
|
+
- 2ba5777: Add support for `@property` inside `styled` and `css` tags
|
|
224
|
+
|
|
225
|
+
## 5.3.1
|
|
226
|
+
|
|
227
|
+
### Patch Changes
|
|
228
|
+
|
|
229
|
+
- 4c9d3c3: Fix animation references by using "global()" instead of ":global()"
|
|
230
|
+
|
|
231
|
+
## 5.3.0
|
|
232
|
+
|
|
233
|
+
### Minor Changes
|
|
234
|
+
|
|
235
|
+
- 3fde4f1: use a turbopack compatible swc plugin path
|
|
236
|
+
|
|
237
|
+
### Patch Changes
|
|
238
|
+
|
|
239
|
+
- 14f2db8: Fix keyframe animation references when used before declaration
|
|
240
|
+
|
|
241
|
+
## 5.2.2
|
|
242
|
+
|
|
243
|
+
### Patch Changes
|
|
244
|
+
|
|
245
|
+
- cd964ac: fix cross file selectors
|
|
246
|
+
- 364f415: fix recursive class name replacement inside mixins
|
|
247
|
+
|
|
248
|
+
## 5.2.1
|
|
249
|
+
|
|
250
|
+
### Patch Changes
|
|
251
|
+
|
|
252
|
+
- 4f69bd9: fix class name escaping in dev mode
|
|
253
|
+
|
|
254
|
+
## 5.2.0
|
|
255
|
+
|
|
256
|
+
### Minor Changes
|
|
257
|
+
|
|
258
|
+
- d018370: minify class names for production builds
|
|
259
|
+
|
|
260
|
+
## 5.1.0
|
|
261
|
+
|
|
262
|
+
### Minor Changes
|
|
263
|
+
|
|
264
|
+
- e2afeb9: Improved React DevTools support - Styled components created with next-yak now show up with their actual variable names in React DevTools instead of a generic yak label
|
|
265
|
+
|
|
266
|
+
### Patch Changes
|
|
267
|
+
|
|
268
|
+
- d461cf5: Mark `__yak_unitPostFix` as pure (generated code)
|
|
269
|
+
- b3e4fec: Minor refactoring of visitors
|
|
270
|
+
|
|
271
|
+
## 5.0.0
|
|
272
|
+
|
|
273
|
+
### Major Changes
|
|
274
|
+
|
|
275
|
+
- 6fd9b9a: **swc:** Update to swc_core 16.0.0 (compatible with @swc/core@1.11.1)
|
|
276
|
+
|
|
277
|
+
## 4.1.0
|
|
278
|
+
|
|
279
|
+
### Minor Changes
|
|
280
|
+
|
|
281
|
+
- 0eac2b4: improve bundle size by compiling styled.TAG_NAME
|
|
282
|
+
|
|
283
|
+
### Patch Changes
|
|
284
|
+
|
|
285
|
+
- ea744ac: Update wasm target to wasm-wasip1
|
|
286
|
+
|
|
287
|
+
## 4.0.4
|
|
288
|
+
|
|
289
|
+
### Patch Changes
|
|
290
|
+
|
|
291
|
+
- 171898f: Fix issue with the css prop where it wouldn't be generated when used inside an exported component
|
|
292
|
+
- d4379a2: Updated all dependencies
|
|
293
|
+
|
|
294
|
+
## 4.0.3
|
|
295
|
+
|
|
296
|
+
### Patch Changes
|
|
297
|
+
|
|
298
|
+
- 154da2f: fix css prop class name access in nested jsx
|
|
299
|
+
|
|
300
|
+
## 4.0.2
|
|
301
|
+
|
|
302
|
+
### Patch Changes
|
|
303
|
+
|
|
304
|
+
- 5ce7f16: Enable css prop support for styled components, not just native HTML elements by fixing a bug in the types
|
|
305
|
+
- 2f0ba89: Enable conditional styling for the css prop
|
|
306
|
+
|
|
307
|
+
## 4.0.1
|
|
308
|
+
|
|
309
|
+
### Patch Changes
|
|
310
|
+
|
|
311
|
+
- 859db1c: Improve cross-os hashes to be more consistent.
|
|
312
|
+
|
|
313
|
+
## 4.0.0
|
|
314
|
+
|
|
315
|
+
### Major Changes
|
|
316
|
+
|
|
317
|
+
- f204637: Add support for Next.js 15.0.4 (SWC 5.x)
|
|
318
|
+
|
|
319
|
+
## 3.1.0
|
|
320
|
+
|
|
321
|
+
### Minor Changes
|
|
322
|
+
|
|
323
|
+
- fcba925: allow to define a prefix for generated css names like variables
|
|
324
|
+
|
|
325
|
+
### Patch Changes
|
|
326
|
+
|
|
327
|
+
- 3d6e505: fix a parsing bug for unquoted urls inside url()
|
|
328
|
+
|
|
329
|
+
## 3.0.1
|
|
330
|
+
|
|
331
|
+
### Patch Changes
|
|
332
|
+
|
|
333
|
+
- 411ad36: Better error message for wrong usage of dynamic properties in nested template
|
|
334
|
+
|
|
335
|
+
## 3.0.0
|
|
336
|
+
|
|
337
|
+
### Major Changes
|
|
338
|
+
|
|
339
|
+
- 94f083f: Upgrade SWC to 3.x to add support for Next.js 15.0.0
|
|
340
|
+
|
|
341
|
+
## 0.8.0
|
|
342
|
+
|
|
343
|
+
### Minor Changes
|
|
344
|
+
|
|
345
|
+
- 7a080ab: Improved CSS class name generation using FNV-1a hashing for better cross-platform consistency and shorter identifiers
|