Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: trailing commas at entrypoints, fixes #1226
  • Loading branch information
theKashey committed May 18, 2019
1 parent c87487d commit 989eebf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .prettierignore
Expand Up @@ -4,4 +4,8 @@ node_modules/
dist/
package.json
CHANGELOG.md
.cache
.cache
babel.js
index.js
patch.js
root.js
4 changes: 2 additions & 2 deletions root.js
Expand Up @@ -5,15 +5,15 @@ 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
var parent = cache[module.parents[0]];
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
Expand Down

0 comments on commit 989eebf

Please sign in to comment.