Skip to content

Commit 7b5650d

Browse files
feat: build library with react-compiler enabled
1 parent 90d046b commit 7b5650d

File tree

45 files changed

+79
-22
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+79
-22
lines changed

babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = (api) => {
2121
},
2222
ignore: ['node_modules', '**/__snapshots__/**', '**/__tests__/**'],
2323
plugins: [
24+
['babel-plugin-react-compiler', {target: '18'}],
2425
'babel-plugin-dev-expression',
2526
'transform-inline-environment-variables',
2627
],

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"@typescript-eslint/parser": "^3.1.0",
7878
"babel-loader": "^8.2.2",
7979
"babel-plugin-dev-expression": "^0.2.2",
80+
"babel-plugin-react-compiler": "^19.1.0-rc.2",
8081
"babel-plugin-react-remove-properties": "^0.3.0",
8182
"babel-plugin-transform-inline-environment-variables": "^0.4.3",
8283
"chromatic": "^6.5.4",
@@ -94,6 +95,7 @@
9495
"prettier": "^2.4.1",
9596
"raf": "^3.4.1",
9697
"react": "^16.12.0",
98+
"react-compiler-runtime": "^19.1.0-rc.2",
9799
"react-dom": "^16.12.0",
98100
"react-test-renderer": "^16.6.1",
99101
"resize-observer-polyfill": "^1.5.1",

packages/clay-alert/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"dependencies": {
2727
"@clayui/icon": "^3.128.0",
2828
"@clayui/layout": "^3.128.0",
29-
"classnames": "^2.2.6"
29+
"classnames": "^2.2.6",
30+
"react-compiler-runtime": "^19.1.0-rc.2"
3031
},
3132
"peerDependencies": {
3233
"@clayui/css": "3.x",

packages/clay-autocomplete/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"@clayui/loading-indicator": "^3.128.0",
3131
"@clayui/shared": "^3.141.0",
3232
"classnames": "^2.2.6",
33+
"react-compiler-runtime": "^19.1.0-rc.2",
3334
"fuzzy": "^0.1.3"
3435
},
3536
"peerDependencies": {

packages/clay-badge/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"react"
2525
],
2626
"dependencies": {
27-
"classnames": "^2.2.6"
27+
"classnames": "^2.2.6",
28+
"react-compiler-runtime": "^19.1.0-rc.2"
2829
},
2930
"peerDependencies": {
3031
"@clayui/css": "3.x",

packages/clay-breadcrumb/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"@clayui/icon": "^3.128.0",
2929
"@clayui/link": "^3.141.0",
3030
"classnames": "^2.2.6",
31+
"react-compiler-runtime": "^19.1.0-rc.2",
3132
"warning": "^4.0.3"
3233
},
3334
"peerDependencies": {

packages/clay-button/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"@clayui/icon": "^3.128.0",
2828
"@clayui/loading-indicator": "^3.128.0",
2929
"classnames": "^2.2.6",
30+
"react-compiler-runtime": "^19.1.0-rc.2",
3031
"warning": "^4.0.3"
3132
},
3233
"peerDependencies": {

packages/clay-card/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"@clayui/link": "^3.141.0",
3434
"@clayui/shared": "^3.141.0",
3535
"@clayui/sticker": "^3.138.0",
36-
"classnames": "^2.2.6"
36+
"classnames": "^2.2.6",
37+
"react-compiler-runtime": "^19.1.0-rc.2"
3738
},
3839
"peerDependencies": {
3940
"@clayui/css": "3.x",

packages/clay-charts/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"dependencies": {
2121
"billboard.js": "^1.8.0",
2222
"classnames": "^2.2.6",
23+
"react-compiler-runtime": "^19.1.0-rc.2",
2324
"d3": "^5.9.2"
2425
},
2526
"peerDependencies": {

packages/clay-color-picker/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"@clayui/shared": "^3.141.0",
3232
"@clayui/slider": "^3.141.0",
3333
"classnames": "^2.2.6",
34+
"react-compiler-runtime": "^19.1.0-rc.2",
3435
"tinycolor2": "^1.4.2"
3536
},
3637
"peerDependencies": {

0 commit comments

Comments
 (0)