Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.

chore: Omit minified files and `sourcesContent` in published packages (#3755)

authored by kitten.sh and committed by GitHub 573944ce b7ede5aa

Changed files
+27 -3
.changeset
scripts
rollup
+23
.changeset/purple-baboons-nail.md
··· 1 + --- 2 + '@urql/exchange-auth': patch 3 + '@urql/exchange-context': patch 4 + '@urql/exchange-execute': patch 5 + '@urql/exchange-graphcache': patch 6 + '@urql/exchange-persisted': patch 7 + '@urql/exchange-populate': patch 8 + '@urql/exchange-refocus': patch 9 + '@urql/exchange-request-policy': patch 10 + '@urql/exchange-retry': patch 11 + '@urql/exchange-throw-on-error': patch 12 + '@urql/core': patch 13 + '@urql/introspection': patch 14 + '@urql/next': patch 15 + '@urql/preact': patch 16 + 'urql': patch 17 + '@urql/solid': patch 18 + '@urql/storage-rn': patch 19 + '@urql/svelte': patch 20 + '@urql/vue': patch 21 + --- 22 + 23 + Omit minified files and sourcemaps' `sourcesContent` in published packages
+4 -3
scripts/rollup/config.mjs
··· 8 8 import * as settings from './settings.mjs'; 9 9 10 10 const plugins = makePlugins(); 11 + const isCI = !!process.env.CI; 11 12 12 13 const chunkFileNames = extension => { 13 14 let hasDynamicChunk = false; ··· 91 92 exports: 'named', 92 93 sourcemap: true, 93 94 banner: chunk => (chunk.name === 'urql-next' ? '"use client"' : undefined), 94 - sourcemapExcludeSources: false, 95 + sourcemapExcludeSources: isCI, 95 96 hoistTransitiveImports: false, 96 97 indent: false, 97 98 freeze: false, ··· 141 142 output: [ 142 143 output({ format: 'cjs', isProduction: false }), 143 144 output({ format: 'esm', isProduction: false }), 144 - output({ format: 'cjs', isProduction: true }), 145 - output({ format: 'esm', isProduction: true }), 145 + !isCI && output({ format: 'cjs', isProduction: true }), 146 + !isCI && output({ format: 'esm', isProduction: true }), 146 147 ].filter(Boolean), 147 148 }, 148 149 {