diff --git a/packages/graphiql-plugin-explorer/example.html b/packages/graphiql-plugin-explorer/example.html index 7d07347f1a..3e5d223eee 100644 --- a/packages/graphiql-plugin-explorer/example.html +++ b/packages/graphiql-plugin-explorer/example.html @@ -38,30 +38,27 @@ > - +
-
Loading…
+
Loading...
- `; + + return { + name: 'html-replace-umd-with-src', + transformIndexHtml: { + order: 'pre', + handler(html) { + const start = ''; + const end = ''; + const contentToReplace = html.slice( + html.indexOf(start) + start.length, + html.indexOf(end), + ); + return html.replace(contentToReplace, htmlForVite); + }, + }, + }; +}