Skip to content

Commit d6297f4

Browse files
authored
Use production distribution of React in GraphiQL (#1243)
1 parent f363b0d commit d6297f4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

juniper/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ graphiql:
3939
https://raw.githubusercontent.com/graphql/graphiql/graphiql%40$(GRAPHIQL_VER)/examples/graphiql-cdn/index.html
4040
$(sed-i) 's|unpkg.com/graphiql/|unpkg.com/graphiql@$(GRAPHIQL_VER)/|g' \
4141
src/http/graphiql.html
42+
$(sed-i) 's|react.development.js|react.production.min.js|g' \
43+
src/http/graphiql.html
44+
$(sed-i) 's|react-dom.development.js|react-dom.production.min.js|g' \
45+
src/http/graphiql.html
4246
$(sed-i) "s|'https://swapi-graphql.netlify.app/.netlify/functions/index'|JUNIPER_URL|g" \
4347
src/http/graphiql.html
4448
$(sed-i) "s|url: JUNIPER_URL,|url: JUNIPER_URL,\n subscriptionUrl: normalizeSubscriptionEndpoint(JUNIPER_URL, JUNIPER_SUBSCRIPTIONS_URL)|" \

juniper/src/http/graphiql.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
-->
3131
<script
3232
crossorigin
33-
src="https://unpkg.com/react@18/umd/react.development.js"
33+
src="https://unpkg.com/react@18/umd/react.production.min.js"
3434
></script>
3535
<script
3636
crossorigin
37-
src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"
37+
src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"
3838
></script>
3939
<!--
4040
These two files can be found in the npm module, however you may wish to

0 commit comments

Comments
 (0)