From 989eebf4ac7595227a5c7f755f475b0f172b9b25 Mon Sep 17 00:00:00 2001 From: Anton Korzunov Date: Sat, 18 May 2019 15:37:31 +1000 Subject: [PATCH] fix: trailing commas at entrypoints, fixes #1226 --- .prettierignore | 6 +++++- root.js | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.prettierignore b/.prettierignore index 0c207fd02..fe33ef3b9 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,4 +4,8 @@ node_modules/ dist/ package.json CHANGELOG.md -.cache \ No newline at end of file +.cache +babel.js +index.js +patch.js +root.js \ No newline at end of file diff --git a/root.js b/root.js index 756a9ea90..6f4cec538 100644 --- a/root.js +++ b/root.js @@ -5,7 +5,7 @@ if (module.hot) { if (!module.parents || module.parents.length === 0) { throw new Error( 'React-Hot-Loader: `react-hot-loader/root` is not supported on your system. ' + - 'Please use `import {hot} from "react-hot-loader"` instead', + 'Please use `import {hot} from "react-hot-loader"` instead' ); } // access parent @@ -13,7 +13,7 @@ if (module.hot) { if (!parent) { throw new Error( 'React-Hot-Loader: `react-hot-loader/root` is not supported on your system. ' + - 'Please use `import {hot} from "react-hot-loader"` instead', + 'Please use `import {hot} from "react-hot-loader"` instead' ); } // remove self from a cache