Skip to content

Commit

Permalink
📦️(lti) add @babel/preset-react to lti_site
Browse files Browse the repository at this point in the history
Add @babel/preset-react to automatically add react to the jsx files
during the transpilation process.
  • Loading branch information
AntoLC committed Apr 6, 2023
1 parent 0cdd375 commit 5257280
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/frontend/apps/lti_site/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
useBuiltIns: 'entry',
},
],
['@babel/preset-react', { runtime: 'automatic' }],
'@babel/preset-typescript',
'react',
],
};
1 change: 1 addition & 0 deletions src/frontend/apps/lti_site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@babel/plugin-syntax-dynamic-import": "7.8.3",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.21.4",
"@babel/preset-react": "7.18.6",
"@babel/preset-typescript": "7.21.4",
"@formatjs/cli": "6.0.4",
"@testing-library/jest-dom": "5.16.5",
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,7 @@
"@babel/types" "^7.4.4"
esutils "^2.0.2"

"@babel/preset-react@^7.12.5", "@babel/preset-react@^7.16.0":
"@babel/preset-react@7.18.6", "@babel/preset-react@^7.12.5", "@babel/preset-react@^7.16.0":
version "7.18.6"
resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.18.6.tgz#979f76d6277048dc19094c217b507f3ad517dd2d"
integrity sha512-zXr6atUmyYdiWRVLOZahakYmOBHtWc2WGCkP8PYTgZi0iJXDY2CN180TdrIW4OGOAdLc7TifzDIvtx6izaRIzg==
Expand Down

0 comments on commit 5257280

Please sign in to comment.