mirror of
https://github.com/status-im/react-native.git
synced 2025-01-13 19:15:05 +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:
parent
dfce55a034
commit
3a1634ec7b
@ -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) {
|
||||
]
|
||||
])
|
||||
};
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user