@nori-ui/tailwindcss-stub
v3.3.3
Published
Crypto-free stub of [email protected] — satisfies NativeWind's peer dep inside Expo Snack (Snack's webpack rejects Node built-ins like crypto that real tailwindcss requires). NOT intended for general use outside Snack.
Readme
@nori-ui/tailwindcss-stub
A crypto-free stub of [email protected] that satisfies NativeWind's peer
dependency requirement inside Expo Snack. Snackager's webpack doesn't
polyfill Node built-ins, and real tailwindcss imports crypto, so bundling
fails. This stub exposes the module surface NativeWind reads at runtime
(tailwindcss, tailwindcss/plugin, tailwindcss/loadConfig,
tailwindcss/lib/util/*, etc.) with minimal crypto-free implementations.
Usage
In an Expo Snack's package.json, alias tailwindcss to this stub:
{
"dependencies": {
"tailwindcss": "npm:@nori-ui/[email protected]"
}
}NativeWind's peer check sees [email protected] installed and the Snack
bundles successfully.
NOT for general use
This is intended strictly for the Snack sandbox. Install real tailwindcss
everywhere else (Expo CLI apps, Next.js, CI). The stub does not compile
utilities or generate CSS.
