Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions change/react-native-windows-2020-06-11-17-03-06-master.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "prerelease",
"comment": "Fix file lock issue wiht msbuild /bl flag and the metro bundler",
"packageName": "react-native-windows",
"email": "dannyvv@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-06-12T00:03:06.389Z"
}
5 changes: 5 additions & 0 deletions vnext/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const fs = require('fs');
const path = require('path');
const rnwPath = __dirname;
const {resolve} = require('metro-resolver');
const blacklist = require('metro-config/src/defaults/blacklist');

function reactNativePlatformResolver(platformImplementations) {
return (context, _realModuleName, platform, moduleName) => {
Expand Down Expand Up @@ -49,6 +50,10 @@ module.exports = {
// Redirect react-native-windows to this folder
'react-native-windows': rnwPath,
},
blacklistRE: blacklist([
// Avoid error EBUSY: resource busy or locked, open '...\vnext\msbuild.ProjectImports.zip' when building 'vnext\Microsoft.ReactNative.sln' with '/bl'
/.*\.ProjectImports\.zip/,
]),
},

transformer: {
Expand Down