File tree Expand file tree Collapse file tree 1 file changed +5
-63
lines changed Expand file tree Collapse file tree 1 file changed +5
-63
lines changed Original file line number Diff line number Diff line change 1+ const builtinModules = require ( 'module' ) . builtinModules ;
2+ const nodePrefixedBuiltinModules = builtinModules . map ( m => `node:${ m } ` ) ;
3+
14module . exports = [
25 // Browser SDK (ESM)
36 {
@@ -190,37 +193,7 @@ module.exports = [
190193 name : '@sentry/node' ,
191194 path : 'packages/node/build/esm/index.js' ,
192195 import : createImport ( 'init' ) ,
193- ignore : [
194- 'node:http' ,
195- 'node:https' ,
196- 'node:diagnostics_channel' ,
197- 'node:perf_hooks' ,
198- 'node:worker_threads' ,
199- 'node:inspector' ,
200- 'node:path' ,
201- 'node:fs' ,
202- 'node:stream' ,
203- 'node:os' ,
204- 'node:net' ,
205- 'node:zlib' ,
206- 'node:child_process' ,
207- 'node:tls' ,
208- 'node:async_hooks' ,
209- 'node:util' ,
210- 'async_hooks' ,
211- 'child_process' ,
212- 'fs' ,
213- 'os' ,
214- 'path' ,
215- 'inspector' ,
216- 'worker_threads' ,
217- 'http' ,
218- 'stream' ,
219- 'zlib' ,
220- 'net' ,
221- 'tls' ,
222- 'module' ,
223- ] ,
196+ ignore : [ ...builtinModules , ...nodePrefixedBuiltinModules ] ,
224197 gzip : true ,
225198 limit : '180 KB' ,
226199 } ,
@@ -229,38 +202,7 @@ module.exports = [
229202 name : '@sentry/aws-serverless' ,
230203 path : 'packages/aws-serverless/build/npm/esm/index.js' ,
231204 import : createImport ( 'init' ) ,
232- ignore : [
233- 'node:http' ,
234- 'node:https' ,
235- 'node:diagnostics_channel' ,
236- 'node:perf_hooks' ,
237- 'node:worker_threads' ,
238- 'node:inspector' ,
239- 'node:path' ,
240- 'node:fs' ,
241- 'node:stream' ,
242- 'node:os' ,
243- 'node:net' ,
244- 'node:zlib' ,
245- 'node:child_process' ,
246- 'node:tls' ,
247- 'node:async_hooks' ,
248- 'node:util' ,
249- 'async_hooks' ,
250- 'child_process' ,
251- 'perf_hooks' ,
252- 'fs' ,
253- 'os' ,
254- 'path' ,
255- 'inspector' ,
256- 'worker_threads' ,
257- 'http' ,
258- 'stream' ,
259- 'zlib' ,
260- 'net' ,
261- 'tls' ,
262- 'module' ,
263- ] ,
205+ ignore : [ ...builtinModules , ...nodePrefixedBuiltinModules ] ,
264206 gzip : true ,
265207 limit : '140 KB' ,
266208 } ,
You can’t perform that action at this time.
0 commit comments