@@ -8,6 +8,7 @@ import cleanup from './cleanup-plugin.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,7 +92,7 @@ const output = ({ format, isProduction }) => {
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,8 +142,8 @@ export default [
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
{
0 commit comments