mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-18 04:13:51 +08: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:
committed by
Facebook Github Bot 8
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) {
|
||||
]
|
||||
])
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user