Skip to content

Commit

Permalink
fix umd build names graphiql-plugin-code-exporter.umd.js and `graph…
Browse files Browse the repository at this point in the history
…iql-plugin-explorer.umd.js` (#3292)
  • Loading branch information
dimaMachina authored Jun 26, 2023
1 parent f1669c4 commit f86e417
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/stale-llamas-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphiql/plugin-code-exporter': patch
'@graphiql/plugin-explorer': patch
---

fix umd build names `graphiql-plugin-code-exporter.umd.js` and `graphiql-plugin-explorer.umd.js`
2 changes: 1 addition & 1 deletion packages/graphiql-plugin-code-exporter/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default defineConfig({
emptyOutDir: !IS_UMD,
lib: {
entry: 'src/index.tsx',
fileName: 'index',
fileName: IS_UMD ? 'graphiql-plugin-code-exporter' : 'index',
name: 'GraphiQLPluginCodeExporter',
formats: IS_UMD ? ['umd'] : ['cjs', 'es'],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/graphiql-plugin-explorer/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default defineConfig({
emptyOutDir: !IS_UMD,
lib: {
entry: 'src/index.tsx',
fileName: 'index',
fileName: IS_UMD ? 'graphiql-plugin-explorer' : 'index',
name: 'GraphiQLPluginExplorer',
formats: IS_UMD ? ['umd'] : ['cjs', 'es'],
},
Expand Down

0 comments on commit f86e417

Please sign in to comment.