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
a87ba4ab4c
commit
450cd5c406
|
@ -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