Skip to content

Commit

Permalink
chore: use official react-compiler-runtime package
Browse files Browse the repository at this point in the history
- Replaced local `react-compiler-runtime` with the official npm package.
- Updated Babel config to target React 18 by changing `runtimeModule` to `target: '18'`.
- Removed local `react-compiler-runtime` implementation and its dependencies from `lib/` directory.
- Updated references in `package-lock.json` and `package.json` to point to the official package.
  • Loading branch information
piotrski committed Oct 22, 2024
1 parent f3d92ce commit 0f5b0f1
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 47 deletions.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require('dotenv').config();
const IS_E2E_TESTING = process.env.E2E_TESTING === 'true';

const ReactCompilerConfig = {
runtimeModule: 'react-compiler-runtime',
target: '18',
environment: {
enableTreatRefLikeIdentifiersAsRefs: true,
},
Expand Down
21 changes: 0 additions & 21 deletions lib/react-compiler-runtime/index.js

This file was deleted.

10 changes: 0 additions & 10 deletions lib/react-compiler-runtime/package.json

This file was deleted.

26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
"babel-jest": "29.4.1",
"babel-loader": "^9.1.3",
"babel-plugin-module-resolver": "^5.0.0",
"babel-plugin-react-compiler": "0.0.0-experimental-334f00b-20240725",
"babel-plugin-react-compiler": "^0.0.0-experimental-8a03594-20241020",
"babel-plugin-react-native-web": "^0.18.7",
"babel-plugin-transform-remove-console": "^6.9.4",
"clean-webpack-plugin": "^4.0.0",
Expand Down Expand Up @@ -304,7 +304,7 @@
"prettier": "^2.8.8",
"pusher-js-mock": "^0.3.3",
"react-compiler-healthcheck": "^0.0.0-experimental-ab3118d-20240725",
"react-compiler-runtime": "file:./lib/react-compiler-runtime",
"react-compiler-runtime": "^0.0.0-experimental-8a03594-20241020",
"react-is": "^18.3.1",
"react-native-clean-project": "^4.0.0-alpha4.0",
"react-test-renderer": "18.3.1",
Expand Down

0 comments on commit 0f5b0f1

Please sign in to comment.