From 3a1634ec7b0dfa2b5d8890118565006d845e2039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Bigio?= Date: Mon, 21 Mar 2016 15:44:12 -0700 Subject: [PATCH] Fix HMR preset config path Reviewed By: davidaurelio Differential Revision: D3077935 fb-gh-sync-id: b1e89f9e34a505f0611cf8991afe4224d5a6f05d shipit-source-id: b1e89f9e34a505f0611cf8991afe4224d5a6f05d --- babel-preset/configs/hmr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/babel-preset/configs/hmr.js b/babel-preset/configs/hmr.js index e88e2c67d..3c041e99f 100644 --- a/babel-preset/configs/hmr.js +++ b/babel-preset/configs/hmr.js @@ -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) { ] ]) }; -} +};