File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
packages/plugin-nativewind/src Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @callstack/repack ' : patch
3+ ' @callstack/repack-plugin-nativewind ' : patch
4+ ---
5+
6+ Fix platform detection for NativeWind via ` NATIVEWIND_OS ` env var
Original file line number Diff line number Diff line change @@ -106,6 +106,11 @@ export class NativeWindPlugin implements RspackPluginInstance {
106106 if ( this . options . checkDependencies ) {
107107 this . ensureNativewindDependenciesInstalled ( compiler . context ) ;
108108 }
109+ /** Set the platform if not present*/
110+ const platformName = compiler . options . name ;
111+ if ( process . env . NATIVEWIND_OS === undefined ) {
112+ process . env . NATIVEWIND_OS = platformName ;
113+ }
109114
110115 /**
111116 * First, we need to process the CSS files using PostCSS.
You can’t perform that action at this time.
0 commit comments