Skip to content

Commit

Permalink
Generate module name seperated by '/' on Windows.
Browse files Browse the repository at this point in the history
Summary: I think packager on different platform should generate same output if possible. So packager should replace '\\' in module name with '/' on Windows.

Closes facebook#2813

Reviewed By: @​svcscm

Differential Revision: D2458634

Pulled By: @martinbigio
  • Loading branch information
tdzl2003 authored and facebook-github-bot-7 committed Sep 18, 2015
1 parent a87ba4a commit 450cd5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packager/react-packager/src/DependencyResolver/Module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '/');
});
})
);
Expand Down

0 comments on commit 450cd5c

Please sign in to comment.