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:
DengYun 2015-09-18 15:12:59 -07:00 committed by facebook-github-bot-7
parent d7dadf9a5c
commit 9e37caebbb
1 changed files with 1 additions and 1 deletions

View File

@ -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, '/');
});
})
);