You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This prevents "npx @react-native-community/cli run-windows" from hitting: EBUSY: resource busy or locked, open msbuild.ProjectImports.zip or other files produced by msbuild
34
-
newRegExp(`${rnwPath}/build/.*`),
35
-
newRegExp(`${rnwPath}/target/.*`),
36
-
/.*\.ProjectImports\.zip/,
37
-
]),
27
+
watchFolders: [
28
+
root,
38
29
//{{#devMode}} [devMode
39
-
extraNodeModules: {
40
-
'react-native-windows': rnwPath,
41
-
},
30
+
rnwPath,
31
+
rnwRootNodeModules,
32
+
rnwPackages,
42
33
// devMode]{{/devMode}}
34
+
],
35
+
36
+
// Ensure only one version of peerDependencies is loaded:
37
+
// Block peers in the repo root and alias them to the example's node_modules.
// This prevents "npx @react-native-community/cli run-windows" from hitting: EBUSY: resource busy or locked, open msbuild.ProjectImports.zip or other files produced by msbuild
34
35
newRegExp(`${rnwPath}/build/.*`),
35
36
newRegExp(`${rnwPath}/target/.*`),
36
37
/.*\.ProjectImports\.zip/,
37
38
]),
39
+
40
+
// Prefer explicit platform list to ensure .windows.* files resolve predictably
41
+
platforms: ['ios','android','native','windows'],
42
+
43
+
// Important for packages that publish using "exports" (RN 0.8x era)
44
+
unstable_enablePackageExports: true,
45
+
38
46
//{{#devMode}} [devMode
39
47
extraNodeModules: {
40
48
'react-native-windows': rnwPath,
41
49
},
42
50
// devMode]{{/devMode}}
43
51
},
44
52
transformer: {
53
+
// Keep inlineRequires to improve startup on some apps.
54
+
// experimentalImportSupport is not needed when extending the RN preset.
// This prevents "npx @react-native-community/cli run-windows" from hitting: EBUSY: resource busy or locked, open msbuild.ProjectImports.zip or other files produced by msbuild
0 commit comments