Skip to content

Commit

Permalink
Don't throw on module collision during watch
Browse files Browse the repository at this point in the history
  • Loading branch information
robhogan committed Dec 9, 2024
1 parent dec7694 commit 4a216e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/metro-file-map/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,7 @@ export default class FileMap extends EventEmitter {
// In watch mode, we'll only warn about module collisions and we'll retain
// all files, even changes to node_modules.
this._options.throwOnModuleCollision = false;
hasteMap.setThrowOnModuleCollision(false);
this._options.retainAllFiles = true;

const hasWatchedExtension = (filePath: string) =>
Expand Down

0 comments on commit 4a216e5

Please sign in to comment.