Skip to content

Commit

Permalink
fix: issue with react jsx runtime import
Browse files Browse the repository at this point in the history
  • Loading branch information
sloanelybutsurely committed Jul 3, 2024
1 parent 0d39599 commit c12c9a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ module.exports = (env, options) => ({
Models: path.resolve(__dirname, "js/models"),
Utils: path.resolve(__dirname, "js/utils"),
Constants: path.resolve(__dirname, "js/constants"),
// Fix issue with React JSX rutime export
// https://github.com/facebook/react/issues/20235#issuecomment-732205073
// This is fixed in later versions of react so this can be removed when
// upgrading react. Keeping it in shouldn't hurt anything.
"react/jsx-runtime": require.resolve("react/jsx-runtime"),
},
},
plugins: [
Expand Down

0 comments on commit c12c9a5

Please sign in to comment.