Skip to content

Commit

Permalink
fix(plugin-react-refresh): ensure decorators before export, fix #2776 (
Browse files Browse the repository at this point in the history
  • Loading branch information
underfin authored Apr 4, 2021
1 parent 3816f6e commit 16412e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/plugin-react-refresh/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ function reactRefreshPlugin(opts) {
allowAwaitOutsideFunction: true,
plugins: parserPlugins
},
generatorOpts: {
decoratorsBeforeExport: true
},
plugins: [
require('@babel/plugin-transform-react-jsx-self'),
require('@babel/plugin-transform-react-jsx-source'),
Expand Down

0 comments on commit 16412e3

Please sign in to comment.