Skip to content

Commit

Permalink
Teach Rollup example app about a few more react export names.
Browse files Browse the repository at this point in the history
Fixes these errors: #7741 (comment)
  • Loading branch information
benjamn committed Mar 9, 2021
1 parent 9fb964e commit 16b08e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/bundling/tree-shaking/rollup-ac3/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ function build({ outputPrefix, externals = [], gzip = false }) {
cjs({
namedExports: {
'react': [
'createContext',
'createElement',
'useRef',
'useContext',
'useReducer',
Expand Down

0 comments on commit 16b08e1

Please sign in to comment.