diff --git a/packages/graphiql-plugin-explorer/vite.config.mts b/packages/graphiql-plugin-explorer/vite.config.mts index 7d41ddbdb9..b0f7a21c6e 100644 --- a/packages/graphiql-plugin-explorer/vite.config.mts +++ b/packages/graphiql-plugin-explorer/vite.config.mts @@ -57,14 +57,14 @@ function htmlPlugin(): PluginOption { const require = createRequire(import.meta.url); const graphiqlPath = require - .resolve('graphiql') - .replace('/dist/index.js', ''); + .resolve('graphiql/package.json') + .replace('/package.json', ''); const htmlForVite = `