mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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:
1 parent
dfce55a034
commit
3a1634ec7b
1 file changed
+2
-2
@@ -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) {
|
||||
]
|
||||
])
|
||||
};
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user