Skip to content

Commit 557d7d9

Browse files
committed
adding json-to-graphql-query
1 parent 29a957f commit 557d7d9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

vite.config.mjs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import path from 'path'
88
import {nodePolyfills} from 'vite-plugin-node-polyfills';
99
import compress from 'vite-plugin-compress'
1010

11+
const jsonToGraphQLQuery = require('json-to-graphql-query')
1112
dns.setDefaultResultOrder("verbatim");
1213

1314
const __filename = fileURLToPath(import.meta.url)
@@ -68,12 +69,12 @@ export default defineConfig({
6869
output: {
6970
dir: "dist",
7071
format: "es",
71-
globals: {
72-
jsonToGraphQLQuery: 'json-to-graphql-query',
73-
},
72+
// globals: {
73+
// jsonToGraphQLQuery: 'json-to-graphql-query',
74+
// },
7475
},
7576
external: [
76-
"jsonToGraphQLQuery",
77+
jsonToGraphQLQuery,
7778
],
7879
}
7980
}

0 commit comments

Comments
 (0)