Emotion plugin does not support disabling `cssPropOptimization`
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 57/100
Línea de trabajo
Start by reading the Emotion plugin implementation and its tests for the cssPropOptimization option; the issue does not name file paths. Compare the behavior with the linked Babel plugin documentation and reproduction, then check how the option is handled when set to false. Done means JSX css props are passed through untouched with the option disabled, matching the expected behavior in the issue.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
The babel emotion plugin includes a cssPropOptimization prop config. in 14.7.0 and earlier, @swc/plugin-emotion never applied this optimization. In later versions it is enabled with no way to disable.
Repro (This repro shows the behavior in 3 versions of the plugin as well as in the babel plugin)
Expected behavior
When cssPropOptimization is set to false, css props in JSX elements should be left untouched. Something like <HStack css={{height: '100%'}} should pass the object to the component untouched. This is how it works in the babel version of this plugin.
Thank you! ❤️
- Lenguaje dominante
- Rust
- Estrellas
- 387
- Forks
- 111
- Merge medio
- 3 h 40 min
- PR fusionados (30 d)
- 18
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de swc-project/plugins
-
graphql-codegen-client-preset: inline calls, the leftover tag import, and name-only matching keep the document map in bundlesPosiblemente ocupada @kdy1 la tomó hace 27 días. Abierto
swc-project/plugins#687 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
`mut-cjs-exports` doesn't properly handle circular imports with barrel filesQuizá libre de nuevo @kdy1 la tomó hace 253 días y no hay ningún pull request abierto. Abierto
swc-project/plugins#577 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[Feature Request] Dead code elimination for assert statements in production buildsQuizá libre de nuevo @kdy1 la tomó hace 319 días y no hay ningún pull request abierto. Abiertoenhancement
swc-project/plugins#574 · 8 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
swc-project/plugins#214 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dependency DashboardAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 10/100
swc-project/plugins#147 ·
Los mantenedores suelen responder en 1 día
Todos los issues de swc-project/plugins
Issues similares
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Top-right curve point in Color Grading cannot be dragged on macOS (scrollbar intercepts click)Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
storytold/filmcraft#5386 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
enhancement in-progress
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100