File tree 1 file changed +5
-63
lines changed
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
+
1
4
module . exports = [
2
5
// Browser SDK (ESM)
3
6
{
@@ -190,37 +193,7 @@ module.exports = [
190
193
name : '@sentry/node' ,
191
194
path : 'packages/node/build/esm/index.js' ,
192
195
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 ] ,
224
197
gzip : true ,
225
198
limit : '180 KB' ,
226
199
} ,
@@ -229,38 +202,7 @@ module.exports = [
229
202
name : '@sentry/aws-serverless' ,
230
203
path : 'packages/aws-serverless/build/npm/esm/index.js' ,
231
204
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 ] ,
264
206
gzip : true ,
265
207
limit : '140 KB' ,
266
208
} ,
You can’t perform that action at this time.
0 commit comments