Fix HMR preset config path

Reviewed By: davidaurelio

Differential Revision: D3077935

fb-gh-sync-id: b1e89f9e34a505f0611cf8991afe4224d5a6f05d
shipit-source-id: b1e89f9e34a505f0611cf8991afe4224d5a6f05d
This commit is contained in:
Martín Bigio 2016-03-21 15:44:12 -07:00 committed by Facebook Github Bot 8
parent dfce55a034
commit 3a1634ec7b
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ var transformPath = require.resolve(hmrTransform);
module.exports = function(options, filename) {
var transform = filename
? path.relative(path.dirname(filename), transformPath) // packager can't handle absolute paths
? './' + path.relative(path.dirname(filename), transformPath) // packager can't handle absolute paths
: hmrTransform;
return {
plugins: resolvePlugins([
@ -32,4 +32,4 @@ module.exports = function(options, filename) {
]
])
};
}
};