Skip to content

Repack v5 : Nativewind transformed styles of host get overridden by those of mini-apps (Module Federation \ Super-app) #1032

Answered by jbroma
sahajarora1286 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @sahajarora1286,

thank you for a very detailed investigation, you've managed to pinpoint the right cause there 👍

to fix this, in your MF2 plugin configuration you have to add a deep import for react-native-css-interop:

shared: {
	// your other shared dependencies
	// add this entry, make sure for it to have `/` at the end!
	'react-native-css-interop/': {
		singleton: true,
		eager: true, // switch to false in miniapp
		requiredVersion: '*' // or version of CSS interop installed
	}
}

let me know if this helps 👍

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@sahajarora1286
Comment options

@sahajarora1286
Comment options

@borisyankov
Comment options

@sahajarora1286
Comment options

@jbroma
Comment options

Answer selected by sahajarora1286
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants