Skip to content

Commit d76af9a

Browse files
lynnshaoyufacebook-github-bot
authored andcommitted
Update relay versions to latest in example devtools app
Summary: We have an example app that embeds devtools on the web page here: fbcode/extensions/chrome/relay-devtools. The relay version being used is very old (5+ years). This diff updates relay to the latest version (17). Reviewed By: tyao1 Differential Revision: D60324999 fbshipit-source-id: fd360f044205d9c7acbf3e2a351dd523ecad0118
1 parent 7edce8e commit d76af9a

File tree

5 files changed

+349
-225
lines changed

5 files changed

+349
-225
lines changed

babel.config.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,15 @@ module.exports = api => {
4949
}
5050
return {
5151
plugins,
52+
sourceType: "unambiguous",
53+
ignore: [
54+
/\/node_modules\//,
55+
],
5256
presets: [
53-
['@babel/preset-env', { targets }],
57+
['@babel/preset-env', {
58+
useBuiltIns: 'entry',
59+
targets,
60+
}],
5461
'@babel/preset-react',
5562
'@babel/preset-flow',
5663
],

package.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"**/*.js": "eslint --max-warnings 0"
7979
},
8080
"devDependencies": {
81-
"@babel/core": "^7.7.5",
81+
"@babel/core": "^7.18.0",
8282
"@babel/plugin-proposal-class-properties": "^7.7.4",
8383
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.8",
8484
"@babel/plugin-proposal-optional-chaining": "^7.7.5",
@@ -87,14 +87,14 @@
8787
"@babel/preset-env": "^7.7.6",
8888
"@babel/preset-flow": "^7.7.4",
8989
"@babel/preset-react": "^7.7.4",
90+
"@babel/runtime": "^7.25.0",
9091
"@reach/menu-button": "^0.5.4",
9192
"@reach/tooltip": "^0.5.4",
9293
"archiver": "^3.0.0",
93-
"babel-core": "^7.0.0-bridge",
94-
"babel-eslint": "^10.0.3",
94+
"babel-eslint": "9.0.0",
9595
"babel-jest": "^24.9.0",
9696
"babel-loader": "^8.0.6",
97-
"babel-plugin-relay": "master",
97+
"babel-plugin-relay": "^17.0.0",
9898
"chance": "^1.0.18",
9999
"child-process-promise": "^2.2.1",
100100
"chrome-launch": "^1.1.4",
@@ -131,11 +131,10 @@
131131
"prop-types": "^15.7.2",
132132
"react": "^0.0.0-50b50c26f",
133133
"react-dom": "^0.0.0-50b50c26f",
134-
"react-relay": "master",
134+
"react-relay": "17.0.0",
135135
"react-test-renderer": "^0.0.0-50b50c26f",
136136
"react-virtualized-auto-sizer": "^1.0.2",
137-
"relay-compiler": "master",
138-
"relay-config": "master",
137+
"relay-compiler": "17.0.0",
139138
"rimraf": "^2.6.3",
140139
"scheduler": "^0.0.0-50b50c26f",
141140
"style-loader": "^0.23.1",

relay.config.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
module.exports = {
99
src: './shells/dev/relay-app',
1010
schema: './shells/dev/relay-app/schema.graphql',
11-
watchman: false,
12-
watch: false,
13-
exclude: ['**/node_modules/**', '**/__generated__/**'],
11+
language: 'flow',
12+
excludes: ['**/node_modules/**', '**/__generated__/**'],
1413
};

shells/dev/webpack.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const config = {
4444
resolve: {
4545
alias: {
4646
src: path.resolve(__dirname, '../../src'),
47+
'@babel/runtime': path.resolve(__dirname, '../../node_modules/@babel/runtime'),
4748
},
4849
},
4950
plugins: [

0 commit comments

Comments
 (0)