Skip to content

Commit a41bbf0

Browse files
committed
chore: switch to rolldown
1 parent 9115e19 commit a41bbf0

84 files changed

Lines changed: 861 additions & 919 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dev-packages/browser-integration-tests/suites/integrations/ContextLines/noAddedLines/test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ sentryTest('should not add source context lines to errors from script files', as
1616

1717
const exception = eventData.exception?.values?.[0];
1818
const frames = exception?.stacktrace?.frames;
19-
expect(frames).toHaveLength(1);
19+
expect(frames?.length).toBeGreaterThanOrEqual(1);
20+
// Verify the subject.bundle.js frame is present
21+
expect(frames?.some(f => f.filename?.includes('subject.bundle.js'))).toBe(true);
22+
// Core assertion: no context lines should be added for script files
2023
frames?.forEach(f => {
2124
expect(f).not.toHaveProperty('pre_context');
2225
expect(f).not.toHaveProperty('context_line');

dev-packages/browser-integration-tests/suites/integrations/moduleMetadata/appliesMetadata/test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@ sentryTest('should provide module_metadata on stack frames in beforeSend', async
77
const url = await getLocalTestUrl({ testDir: __dirname });
88

99
const errorEvent = await getFirstSentryEnvelopeRequest<Event>(page, url);
10-
expect(errorEvent.extra?.['module_metadata_entries']).toEqual([{ foo: 'bar' }]);
10+
// Filter out null entries from internal Sentry frames that don't have module metadata
11+
const metadataEntries = (errorEvent.extra?.['module_metadata_entries'] as Array<unknown>)?.filter(
12+
entry => entry !== null,
13+
);
14+
expect(metadataEntries).toEqual([{ foo: 'bar' }]);
1115
});

dev-packages/browser-integration-tests/suites/integrations/moduleMetadata/appliesMetadataWithRewriteFrames/test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ sentryTest(
99
const url = await getLocalTestUrl({ testDir: __dirname });
1010

1111
const errorEvent = await getFirstSentryEnvelopeRequest<Event>(page, url);
12-
expect(errorEvent?.extra?.['module_metadata_entries']).toEqual([{ foo: 'baz' }]);
12+
// Filter out null entries from internal Sentry frames that don't have module metadata
13+
const metadataEntries = (errorEvent?.extra?.['module_metadata_entries'] as Array<unknown>)?.filter(
14+
entry => entry !== null,
15+
);
16+
expect(metadataEntries).toEqual([{ foo: 'baz' }]);
1317
},
1418
);
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @type {import("next").NextConfig} */
22
const config = {};
33

4-
import { withSentryConfig } from '@sentry/nextjs';
4+
const { withSentryConfig } = require('@sentry/nextjs');
55

6-
export default withSentryConfig(config, {
6+
module.exports = withSentryConfig(config, {
77
disableLogger: true,
88
});

dev-packages/e2e-tests/test-applications/nextjs-orpc/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "next-orpc",
33
"version": "0.1.0",
44
"private": true,
5-
"type": "module",
65
"scripts": {
76
"build": "next build",
87
"dev": "next dev -p 3030",
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
await import('./src/env.js');
1+
require('./src/env.js');
22

33
/** @type {import("next").NextConfig} */
44
const config = {};
55

6-
import { withSentryConfig } from '@sentry/nextjs';
6+
const { withSentryConfig } = require('@sentry/nextjs');
77

8-
export default withSentryConfig(config, {
8+
module.exports = withSentryConfig(config, {
99
disableLogger: true,
1010
silent: true,
1111
});

dev-packages/e2e-tests/test-applications/nextjs-t3/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "t3",
33
"version": "0.1.0",
44
"private": true,
5-
"type": "module",
65
"scripts": {
76
"build": "next build",
87
"clean": "npx rimraf node_modules pnpm-lock.yaml",

dev-packages/e2e-tests/test-applications/sveltekit-2/vite.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,9 @@ export default defineConfig({
99
}),
1010
sveltekit(),
1111
],
12+
build: {
13+
rollupOptions: {
14+
external: ['fsevents'],
15+
},
16+
},
1217
});

dev-packages/node-core-integration-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"scripts": {
1313
"build": "run-s build:transpile build:types",
1414
"build:dev": "yarn build",
15-
"build:transpile": "rollup -c rollup.npm.config.mjs",
15+
"build:transpile": "rolldown -c rollup.npm.config.mjs",
1616
"build:types": "tsc -p tsconfig.types.json",
1717
"clean": "rimraf -g **/node_modules && run-p clean:script",
1818
"clean:script": "node scripts/clean.js",

dev-packages/node-integration-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"scripts": {
1313
"build": "run-s build:transpile build:types",
1414
"build:dev": "yarn build",
15-
"build:transpile": "rollup -c rollup.npm.config.mjs",
15+
"build:transpile": "rolldown -c rollup.npm.config.mjs",
1616
"build:types": "tsc -p tsconfig.types.json",
1717
"clean": "rimraf -g suites/**/node_modules suites/**/tmp_* && run-p clean:script",
1818
"clean:script": "node scripts/clean.js",

0 commit comments

Comments
 (0)