From a558c4b59d8acde0806cde725a0849cadb9d1c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Bigio?= Date: Wed, 17 Feb 2016 15:39:46 -0800 Subject: [PATCH] Tweak Hot Loading yellow box wording Summary: Users don't know what an accept callback is. Lets be more explicit on what type of modules we currently support hot loading. Reviewed By: weicool Differential Revision: D2945438 fb-gh-sync-id: d0fc228ab23833371f8fbbd86ed18e81c8ba0ebf shipit-source-id: d0fc228ab23833371f8fbbd86ed18e81c8ba0ebf --- react-packager/src/Resolver/polyfills/require.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react-packager/src/Resolver/polyfills/require.js b/react-packager/src/Resolver/polyfills/require.js index a5a7a55f..bc2824bb 100644 --- a/react-packager/src/Resolver/polyfills/require.js +++ b/react-packager/src/Resolver/polyfills/require.js @@ -118,8 +118,8 @@ if (__DEV__) { // HMR mod.module.hot.acceptCallback(); } else { console.warn( - '[HMR] Module `' + id + '` can\'t be hot reloaded because it ' + - 'doesn\'t provide accept callback hook. Reload the app to get the updates.' + '[HMR] Module `' + id + '` can\'t be hot reloaded because it\'s not a ' + + 'React component. To get the changes reload the JS bundle.' ); } }