Skip to content

Commit 47906be

Browse files
committed
fix build
1 parent f75b224 commit 47906be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/graphiql-plugin-explorer/vite.config.mts

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ function htmlPlugin(): PluginOption {
5757
const require = createRequire(import.meta.url);
5858

5959
const graphiqlPath = require
60-
.resolve('graphiql')
61-
.replace('/dist/index.js', '');
60+
.resolve('graphiql/package.json')
61+
.replace('/package.json', '');
6262

6363
const htmlForVite = `<link rel="stylesheet" href="${graphiqlPath}/src/style.css" />
6464
<script type="module">
6565
import React from 'react';
6666
import ReactDOM from 'react-dom/client';
67-
import GraphiQL from '${graphiqlPath}/src/cdn.ts';
67+
import GraphiQL from '${graphiqlPath}/src/cdn';
6868
import * as GraphiQLPluginExplorer from './src';
6969
7070
Object.assign(globalThis, { React, ReactDOM, GraphiQL, GraphiQLPluginExplorer });

0 commit comments

Comments
 (0)