Skip to content

add DEBUG=nativewind for Metro debugging#1093

Merged
marklawlor merged 1 commit intomainfrom
@marklawlor/4.1/debug=nativewind
Sep 20, 2024
Merged

add DEBUG=nativewind for Metro debugging#1093
marklawlor merged 1 commit intomainfrom
@marklawlor/4.1/debug=nativewind

Conversation

@marklawlor
Copy link
Collaborator

Add debug output when DEBUG=nativewind is set.

➜  expo-router git:(main) ✗ DEBUG=nativewind npx expo start        
Starting project at /Users/mark/Projects/nativewind/examples/expo-router
  nativewind input: /Users/mark/Projects/nativewind/examples/expo-router/global.css +0ms
  nativewind important: undefined +26ms
  nativewind checking TypeScript setup +0ms
  nativewind withCssInterop: successfully called +82ms
  nativewind platforms: ios,android,web,native +0ms
  nativewind prodOutputDir: /Users/mark/Projects/nativewind/packages/react-native-css-interop/.cache +0ms
Starting Metro Bundler
  nativewind enhanceMiddleware successfully called +229ms

› Metro waiting on exp://192.168.1.4:8081
› Scan the QR code above with Expo Go (Android) or the Camera app (iOS)

› Web is waiting on http://localhost:8081

› Using Expo Go
› Press s │ switch to development build

› Press a │ open Android
› Press i │ open iOS simulator
› Press w │ open web

› Press j │ open debugger
› Press r │ reload app
› Press m │ toggle menu
› Press o │ open project code in your editor

› Press ? │ show all commands

Logs for your project will appear below. Press Ctrl+C to exit.
› Opening on iOS...
› Opening exp://192.168.1.4:8081 on iPhone 15
› Press ? │ show all commands
› Reloading apps
iOS ./index.js ▓░░░░░░░░░░░░░░░  7.0% ( 66/249)  
  nativewind resolveRequest: found input +11s
  nativewind resolveRequest.isDev true +0ms
  nativewind platformFilePath: /Users/mark/Projects/nativewind/examples/expo-router/global.css.ios.js +0ms
  nativewind processDEV: ios +0ms
iOS ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░ 99.8% (1181/1182)  
  nativewind Features {"transformPercentagePolyfill":false,"disableGapPercentageValues":false,"disableDisplayBlock":false,"disableAlignContentEvenly":false,"disablePositionStatic":false} +1s
  nativewind Grouping /^group(\/.*)?/ +0ms
  nativewind Start lightningcss +0ms
  nativewind StyleSheetExit +154ms
  nativewind Extraction of 14216 rules finished +110ms
  nativewind Start optimizing rules +10ms
  nativewind Finishing optimization +1s
  nativewind Rule set count: 14206 +0ms
  nativewind Start stringify +0ms
  nativewind Finished stringify +68ms
  nativewind Output size: 3396879 bytes +0ms
iOS Bundled 7360ms index.js (1182 modules)
 LOG  nativewind parse time: 29ms
  nativewind Features {"transformPercentagePolyfill":false,"disableGapPercentageValues":false,"disableDisplayBlock":false,"disableAlignContentEvenly":false,"disablePositionStatic":false} +13s
  nativewind Grouping /^group(\/.*)?/ +0ms
  nativewind Start lightningcss +0ms
  nativewind StyleSheetExit +202ms
  nativewind Extraction of 14217 rules finished +198ms
  nativewind Start optimizing rules +23ms
  nativewind Finishing optimization +1s
  nativewind Rule set count: 14207 +0ms
  nativewind Start stringify +0ms
  nativewind Finished stringify +65ms
  nativewind Output size: 3397109 bytes +1ms
  nativewind Firing change event to Metro +0ms
 LOG  Fast Refresh took: 4927ms
 LOG  nativewind parse time: 45ms

@vercel
Copy link

vercel bot commented Sep 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nativewind ✅ Ready (Inspect) Visit Preview Sep 20, 2024 3:26am

@marklawlor marklawlor force-pushed the @marklawlor/4.1/debug=nativewind branch 3 times, most recently from 6b14071 to 7343705 Compare September 20, 2024 03:02
@marklawlor marklawlor changed the title add `DEBUG for Metro debugging add DEBUG=nativewind for Metro debugging Sep 20, 2024
@marklawlor marklawlor force-pushed the @marklawlor/4.1/debug=nativewind branch from 7343705 to 37e505a Compare September 20, 2024 03:17
@marklawlor marklawlor force-pushed the @marklawlor/4.1/debug=nativewind branch from 37e505a to 21eca68 Compare September 20, 2024 03:24
@marklawlor marklawlor merged commit 2b89c62 into main Sep 20, 2024
@marklawlor marklawlor deleted the @marklawlor/4.1/debug=nativewind branch September 20, 2024 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant