swc-plugin-react-native-web-css-modules
v0.0.14
Published
Transform CSS module exports into RNW compatible format
Downloads
15
Readme
swc_plugin_react_native_web_css_modules
A SWC plugin that allows you to use CSS modules with React Native Web
How does it work?
All imports of .css
or .scss
files will be wrapped with a function call that turns all the exported classnames into https://github.com/necolas/styleq (what RNW uses internally) compatible objects
Building
!! At the moment you need to build with Rust 1.65.0 to avoid a "memory access out of bounds error"