File tree 4 files changed +10
-5
lines changed
graphiql-plugin-code-exporter
4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @graphiql/plugin-code-exporter " : patch
3
+ " @graphiql/plugin-explorer " : patch
4
+ " @graphiql/react " : patch
5
+ ---
6
+
7
+ set ` build.minify: false ` for cjs/esm builds since minified variable names change every build time
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ const IS_UMD = process.env.UMD === 'true';
7
7
export default defineConfig ( {
8
8
plugins : [ react ( { jsxRuntime : 'classic' } ) ] ,
9
9
build : {
10
+ minify : IS_UMD ? 'esbuild' : false ,
10
11
// avoid clean cjs/es builds
11
12
emptyOutDir : ! IS_UMD ,
12
13
lib : {
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export default defineConfig({
16
16
} ) ,
17
17
] ,
18
18
build : {
19
+ minify : IS_UMD ? 'esbuild' : false ,
19
20
// avoid clean cjs/es builds
20
21
emptyOutDir : ! IS_UMD ,
21
22
lib : {
Original file line number Diff line number Diff line change @@ -19,12 +19,8 @@ export default defineConfig({
19
19
plugins : [ postCssNestingPlugin ( ) ] ,
20
20
} ,
21
21
} ,
22
- esbuild : {
23
- // We use function names for generating readable error messages, so we want
24
- // them to be preserved when building and minifying.
25
- keepNames : true ,
26
- } ,
27
22
build : {
23
+ minify : false ,
28
24
sourcemap : true ,
29
25
lib : {
30
26
entry : 'src/index.ts' ,
You can’t perform that action at this time.
0 commit comments