Skip to content

Commit

Permalink
add private property support to react-refesh plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Oct 11, 2020
1 parent 1bfc48c commit d34c194
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions plugins/plugin-react-refresh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"dependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-syntax-class-properties": "^7.10.0",
"react-refresh": "^0.8.3"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion plugins/plugin-react-refresh/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async function transformJs(contents, id, skipTransform) {
sourceMaps: false,
configFile: false,
babelrc: false,
plugins: [require('react-refresh/babel')],
plugins: [require('react-refresh/babel'), require('@babel/plugin-syntax-class-properties')],
});
fastRefreshEnhancedCode = code;
}
Expand Down

1 comment on commit d34c194

@vercel
Copy link

@vercel vercel bot commented on d34c194 Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.