8000 ci: Fix size limit webpack resolving (#12145) · benjick/sentry-javascript@10fbee2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 10fbee2

Browse files
authored
ci: Fix size limit webpack resolving (getsentry#12145)
1 parent 4420844 commit 10fbee2

File tree

1 file changed

+5
-63
lines changed

1 file changed

+5
-63
lines changed

.size-limit.js

Lines changed: 5 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
const builtinModules = require('module').builtinModules;
2+
const nodePrefixedBuiltinModules = builtinModules.map(m => `node:${m}`);
3+
14
module.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
},

0 commit comments

Comments
 (0)
0