mirror of https://github.com/status-im/metro.git
Generate module name seperated by '/' on Windows.
Summary: I think packager on different platform should generate same output if possible. So packager should replace '\\' in module name with '/' on Windows. Closes https://github.com/facebook/react-native/pull/2813 Reviewed By: @svcscm Differential Revision: D2458634 Pulled By: @martinbigio
This commit is contained in:
parent
d7dadf9a5c
commit
9e37caebbb
|
@ -56,7 +56,7 @@ class Module {
|
|||
return this.path;
|
||||
}
|
||||
|
||||
return path.join(name, path.relative(p.root, this.path));
|
||||
return path.join(name, path.relative(p.root, this.path)).replace(/\\/g, '/');
|
||||
});
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue