From 4a258a3a9616bc30866bd2a570e63afee4423089 Mon Sep 17 00:00:00 2001 From: Dimitri POSTOLOV Date: Mon, 26 Jun 2023 18:14:26 +0200 Subject: [PATCH] fix --- .changeset/cold-maps-kneel.md | 6 ++++++ packages/graphiql-plugin-code-exporter/vite.config.ts | 2 +- packages/graphiql-plugin-explorer/vite.config.ts | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .changeset/cold-maps-kneel.md diff --git a/.changeset/cold-maps-kneel.md b/.changeset/cold-maps-kneel.md new file mode 100644 index 00000000000..83c2f4c4c19 --- /dev/null +++ b/.changeset/cold-maps-kneel.md @@ -0,0 +1,6 @@ +--- +'@graphiql/plugin-code-exporter': minor +'@graphiql/plugin-explorer': minor +--- + +BREAKING CHANGE: umd build was renamed to `index.umd.js` diff --git a/packages/graphiql-plugin-code-exporter/vite.config.ts b/packages/graphiql-plugin-code-exporter/vite.config.ts index a8c719fdc6c..aa89e4a0b8c 100644 --- a/packages/graphiql-plugin-code-exporter/vite.config.ts +++ b/packages/graphiql-plugin-code-exporter/vite.config.ts @@ -11,7 +11,7 @@ export default defineConfig({ emptyOutDir: !IS_UMD, lib: { entry: 'src/index.tsx', - fileName: IS_UMD ? 'graphiql-plugin-code-exporter' : 'index', + fileName: 'index', name: 'GraphiQLPluginCodeExporter', formats: IS_UMD ? ['umd'] : ['cjs', 'es'], }, diff --git a/packages/graphiql-plugin-explorer/vite.config.ts b/packages/graphiql-plugin-explorer/vite.config.ts index 6fea8c1b68d..cd4a63c8c99 100644 --- a/packages/graphiql-plugin-explorer/vite.config.ts +++ b/packages/graphiql-plugin-explorer/vite.config.ts @@ -11,7 +11,7 @@ export default defineConfig({ emptyOutDir: !IS_UMD, lib: { entry: 'src/index.tsx', - fileName: IS_UMD ? 'graphiql-plugin-explorer' : 'index', + fileName: 'index', name: 'GraphiQLPluginExplorer', formats: IS_UMD ? ['umd'] : ['cjs', 'es'], },