Skip to content

Commit f66a9a8

Browse files
committed
chore: fix nextjs output
1 parent 0c688ae commit f66a9a8

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

packages/nextjs/rollup.npm.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ export default [
1919
packageSpecificConfig: {
2020
external: ['next/router', 'next/constants', 'next/headers', 'stacktrace-parser'],
2121

22+
output: {
23+
virtualDirname: '_virtual/core',
24+
},
25+
2226
// Next.js and our users are more happy when our client code has the "use client" directive
2327
plugins: [
2428
{
@@ -51,6 +55,8 @@ export default [
5155

5256
packageSpecificConfig: {
5357
output: {
58+
virtualDirname: '_virtual/loaders',
59+
5460
// this is going to be add-on code, so it doesn't need the trappings of a full module (and in fact actively
5561
// shouldn't have them, lest they muck with the module to which we're adding it)
5662
sourcemap: false,
@@ -75,6 +81,8 @@ export default [
7581

7682
packageSpecificConfig: {
7783
output: {
84+
virtualDirname: '_virtual/polyfills',
85+
7886
// make it so Rollup calms down about the fact that we're combining default and named exports
7987
exports: 'named',
8088
},
@@ -88,6 +96,8 @@ export default [
8896

8997
packageSpecificConfig: {
9098
output: {
99+
virtualDirname: '_virtual/polyfills',
100+
91101
// make it so Rollup calms down about the fact that we're combining default and named exports
92102
exports: 'named',
93103
},
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
export * from './config';
22
export * from './server';
3+
// FIXME: Explicitly re-export from @sentry/node to ensure CJS builds properly include all exports
4+
// (Rolldown doesn't transitively handle export * in CJS builds)
5+
export * from '@sentry/node';

0 commit comments

Comments
 (0)