这是indexloc提供的服务,不要输入任何密码
Skip to content

refactor: replace source-map with source-map-js #1449

refactor: replace source-map with source-map-js

refactor: replace source-map with source-map-js #1449

Triggered via push November 12, 2025 21:01
Status Failure
Total duration 1m 42s
Artifacts

ci.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

38 errors
test/dts.test.ts > declaration files with multiple entrypoints #316: test/utils.ts#L61
Error: CLI Building entry: src/index.ts, src/bar/index.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/package.json CLI Target: esnext CJS Build start CJS dist/index.js 1.02 KB CJS dist/bar/index.js 1.02 KB CJS ⚡️ Build success in 36ms node:internal/event_target:1122 process.nextTick(() => { throw err; }); ^ TypeError: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1706:14) at Object..js (node:internal/modules/cjs/loader:1839:10) at Module.load (node:internal/modules/cjs/loader:1441:32) at Function._load (node:internal/modules/cjs/loader:1263:12) at TracingChannel.traceSync (node:diagnostics_channel:328:14) at wrapModuleLoad (node:internal/modules/cjs/loader:237:24) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5) at MessagePort.<anonymous> (node:internal/main/worker_thread:226:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:845:20) Node.js v22.21.1 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:466:30
test/dts.test.ts > dts only: ignore files: test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/package.json node:internal/event_target:1122 process.nextTick(() => { throw err; }); ^ TypeError: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1706:14) at Object..js (node:internal/modules/cjs/loader:1839:10) at Module.load (node:internal/modules/cjs/loader:1441:32) at Function._load (node:internal/modules/cjs/loader:1263:12) at TracingChannel.traceSync (node:diagnostics_channel:328:14) at wrapModuleLoad (node:internal/modules/cjs/loader:237:24) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5) at MessagePort.<anonymous> (node:internal/main/worker_thread:226:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:845:20) Node.js v22.21.1 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:439:24
test/dts.test.ts > should emit dts chunks per format (type: module): test/utils.ts#L61
Error: CLI Building entry: src/input1.ts, src/input2.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/--emit-dts-chunks-per-format--type--module-/tsup.config.ts CLI Target: esnext ESM Build start CJS Build start ESM dist/input1.js 85.00 B ESM dist/input2.js 85.00 B ESM ⚡️ Build success in 25ms CJS dist/input1.cjs 1.07 KB CJS dist/input2.cjs 1.07 KB CJS ⚡️ Build success in 21ms node:internal/event_target:1122 process.nextTick(() => { throw err; }); ^ TypeError: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1706:14) at Object..js (node:internal/modules/cjs/loader:1839:10) at Module.load (node:internal/modules/cjs/loader:1441:32) at Function._load (node:internal/modules/cjs/loader:1263:12) at TracingChannel.traceSync (node:diagnostics_channel:328:14) at wrapModuleLoad (node:internal/modules/cjs/loader:237:24) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5) at MessagePort.<anonymous> (node:internal/main/worker_thread:226:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:845:20) Node.js v22.21.1 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:156:24
test/dts.test.ts > should emit dts chunks per format: test/utils.ts#L61
Error: CLI Building entry: src/input1.ts, src/input2.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/--emit-dts-chunks-per-format/tsup.config.ts CLI Target: esnext ESM Build start CJS Build start ESM dist/input1.mjs 85.00 B ESM dist/input2.mjs 85.00 B ESM ⚡️ Build success in 25ms CJS dist/input1.js 1.07 KB CJS dist/input2.js 1.07 KB CJS ⚡️ Build success in 23ms node:internal/event_target:1122 process.nextTick(() => { throw err; }); ^ TypeError: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1706:14) at Object..js (node:internal/modules/cjs/loader:1839:10) at Module.load (node:internal/modules/cjs/loader:1441:32) at Function._load (node:internal/modules/cjs/loader:1263:12) at TracingChannel.traceSync (node:diagnostics_channel:328:14) at wrapModuleLoad (node:internal/modules/cjs/loader:237:24) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5) at MessagePort.<anonymous> (node:internal/main/worker_thread:226:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:845:20) Node.js v22.21.1 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:114:24
test/dts.test.ts > should emit a declaration file per format (type: module): test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/--emit-a-declaration-file-per-format--type--module-/tsup.config.ts CLI Target: esnext ESM Build start CJS Build start ESM dist/input.js 78.00 B ESM ⚡️ Build success in 13ms CJS dist/input.cjs 970.00 B CJS ⚡️ Build success in 12ms node:internal/event_target:1122 process.nextTick(() => { throw err; }); ^ TypeError: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1706:14) at Object..js (node:internal/modules/cjs/loader:1839:10) at Module.load (node:internal/modules/cjs/loader:1441:32) at Function._load (node:internal/modules/cjs/loader:1263:12) at TracingChannel.traceSync (node:diagnostics_channel:328:14) at wrapModuleLoad (node:internal/modules/cjs/loader:237:24) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5) at MessagePort.<anonymous> (node:internal/main/worker_thread:226:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:845:20) Node.js v22.21.1 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:93:24
test/dts.test.ts > should emit a declaration file per format: test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/--emit-a-declaration-file-per-format/tsup.config.ts CLI Target: esnext ESM Build start CJS Build start ESM dist/input.mjs 78.00 B ESM ⚡️ Build success in 23ms CJS dist/input.js 970.00 B CJS ⚡️ Build success in 22ms node:internal/event_target:1122 process.nextTick(() => { throw err; }); ^ TypeError: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1706:14) at Object..js (node:internal/modules/cjs/loader:1839:10) at Module.load (node:internal/modules/cjs/loader:1441:32) at Function._load (node:internal/modules/cjs/loader:1263:12) at TracingChannel.traceSync (node:diagnostics_channel:328:14) at wrapModuleLoad (node:internal/modules/cjs/loader:237:24) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5) at MessagePort.<anonymous> (node:internal/main/worker_thread:226:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:845:20) Node.js v22.21.1 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:75:24
test/dts.test.ts > custom tsconfig should pass to dts plugin: test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: tsconfig.build.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/--tsconfig-should-pass-to-dts-plugin/tsup.config.ts node:internal/event_target:1122 process.nextTick(() => { throw err; }); ^ TypeError: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1706:14) at Object..js (node:internal/modules/cjs/loader:1839:10) at Module.load (node:internal/modules/cjs/loader:1441:32) at Function._load (node:internal/modules/cjs/loader:1263:12) at TracingChannel.traceSync (node:diagnostics_channel:328:14) at wrapModuleLoad (node:internal/modules/cjs/loader:237:24) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5) at MessagePort.<anonymous> (node:internal/main/worker_thread:226:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:845:20) Node.js v22.21.1 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:45:24
test/dts.test.ts > enable --dts-resolve for specific module: test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/----dts-resolve-for-specific-module/tsup.config.ts CLI Target: esnext CJS Build start CJS dist/input.js 1.90 MB CJS ⚡️ Build success in 293ms node:internal/event_target:1122 process.nextTick(() => { throw err; }); ^ TypeError: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1706:14) at Object..js (node:internal/modules/cjs/loader:1839:10) at Module.load (node:internal/modules/cjs/loader:1441:32) at Function._load (node:internal/modules/cjs/loader:1263:12) at TracingChannel.traceSync (node:diagnostics_channel:328:14) at wrapModuleLoad (node:internal/modules/cjs/loader:237:24) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5) at MessagePort.<anonymous> (node:internal/main/worker_thread:226:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:845:20) Node.js v22.21.1 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:24:30
test/dts.test.ts > not bundle `package/subpath` in dts (resolve): test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/package.json CLI Target: esnext CJS Build start CJS dist/input.js 1.05 KB CJS ⚡️ Build success in 25ms node:internal/event_target:1122 process.nextTick(() => { throw err; }); ^ TypeError: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1706:14) at Object..js (node:internal/modules/cjs/loader:1839:10) at Module.load (node:internal/modules/cjs/loader:1441:32) at Function._load (node:internal/modules/cjs/loader:1263:12) at TracingChannel.traceSync (node:diagnostics_channel:328:14) at wrapModuleLoad (node:internal/modules/cjs/loader:237:24) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5) at MessagePort.<anonymous> (node:internal/main/worker_thread:226:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:845:20) Node.js v22.21.1 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:7:30
test/css.test.ts > import css in --dts: test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/package.json CLI Target: esnext CJS Build start CJS dist/input.js 14.00 B CJS dist/input.css 38.00 B CJS ⚡️ Build success in 39ms node:internal/event_target:1122 process.nextTick(() => { throw err; }); ^ TypeError: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1706:14) at Object..js (node:internal/modules/cjs/loader:1839:10) at Module.load (node:internal/modules/cjs/loader:1441:32) at Function._load (node:internal/modules/cjs/loader:1263:12) at TracingChannel.traceSync (node:diagnostics_channel:328:14) at wrapModuleLoad (node:internal/modules/cjs/loader:237:24) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5) at MessagePort.<anonymous> (node:internal/main/worker_thread:226:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:845:20) Node.js v22.21.1 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/css.test.ts:51:32
test (windows-latest, 22)
The strategy configuration was canceled because "test.ubuntu-latest_22" failed
test (windows-latest, 22)
The operation was canceled.
test (ubuntu-latest, 20)
The strategy configuration was canceled because "test.ubuntu-latest_22" failed
test/dts.test.ts > declaration files with multiple entrypoints #316: test/utils.ts#L61
Error: CLI Building entry: src/index.ts, src/bar/index.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/package.json CLI Target: esnext CJS Build start CJS dist/index.js 1.02 KB CJS dist/bar/index.js 1.02 KB CJS ⚡️ Build success in 28ms node:internal/event_target:1105 process.nextTick(() => { throw err; }); ^ TypeError [Error]: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1521:14) at Object..js (node:internal/modules/cjs/loader:1623:10) at Module.load (node:internal/modules/cjs/loader:1266:32) at Function._load (node:internal/modules/cjs/loader:1091:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12) at MessagePort.<anonymous> (node:internal/main/worker_thread:192:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:333:10) at [kOnMessage] (node:internal/worker:344:37) at MessagePort.<anonymous> (node:internal/worker:233:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Node.js v20.19.5 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:466:30
test/dts.test.ts > dts only: ignore files: test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/package.json node:internal/event_target:1105 process.nextTick(() => { throw err; }); ^ TypeError [Error]: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1521:14) at Object..js (node:internal/modules/cjs/loader:1623:10) at Module.load (node:internal/modules/cjs/loader:1266:32) at Function._load (node:internal/modules/cjs/loader:1091:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12) at MessagePort.<anonymous> (node:internal/main/worker_thread:192:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:333:10) at [kOnMessage] (node:internal/worker:344:37) at MessagePort.<anonymous> (node:internal/worker:233:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Node.js v20.19.5 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:439:24
test/dts.test.ts > should emit dts chunks per format (type: module): test/utils.ts#L61
Error: CLI Building entry: src/input1.ts, src/input2.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/--emit-dts-chunks-per-format--type--module-/tsup.config.ts CLI Target: esnext ESM Build start CJS Build start ESM dist/input1.js 85.00 B ESM dist/input2.js 85.00 B ESM ⚡️ Build success in 22ms CJS dist/input1.cjs 1.07 KB CJS dist/input2.cjs 1.07 KB CJS ⚡️ Build success in 20ms node:internal/event_target:1105 process.nextTick(() => { throw err; }); ^ TypeError [Error]: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1521:14) at Object..js (node:internal/modules/cjs/loader:1623:10) at Module.load (node:internal/modules/cjs/loader:1266:32) at Function._load (node:internal/modules/cjs/loader:1091:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12) at MessagePort.<anonymous> (node:internal/main/worker_thread:192:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:333:10) at [kOnMessage] (node:internal/worker:344:37) at MessagePort.<anonymous> (node:internal/worker:233:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Node.js v20.19.5 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:156:24
test/dts.test.ts > should emit dts chunks per format: test/utils.ts#L61
Error: CLI Building entry: src/input1.ts, src/input2.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/--emit-dts-chunks-per-format/tsup.config.ts CLI Target: esnext ESM Build start CJS Build start ESM dist/input1.mjs 85.00 B ESM dist/input2.mjs 85.00 B ESM ⚡️ Build success in 25ms CJS dist/input1.js 1.07 KB CJS dist/input2.js 1.07 KB CJS ⚡️ Build success in 22ms node:internal/event_target:1105 process.nextTick(() => { throw err; }); ^ TypeError [Error]: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1521:14) at Object..js (node:internal/modules/cjs/loader:1623:10) at Module.load (node:internal/modules/cjs/loader:1266:32) at Function._load (node:internal/modules/cjs/loader:1091:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12) at MessagePort.<anonymous> (node:internal/main/worker_thread:192:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:333:10) at [kOnMessage] (node:internal/worker:344:37) at MessagePort.<anonymous> (node:internal/worker:233:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Node.js v20.19.5 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:114:24
test/dts.test.ts > should emit a declaration file per format (type: module): test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/--emit-a-declaration-file-per-format--type--module-/tsup.config.ts CLI Target: esnext ESM Build start CJS Build start CJS dist/input.cjs 970.00 B CJS ⚡️ Build success in 15ms ESM dist/input.js 78.00 B ESM ⚡️ Build success in 23ms node:internal/event_target:1105 process.nextTick(() => { throw err; }); ^ TypeError [Error]: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1521:14) at Object..js (node:internal/modules/cjs/loader:1623:10) at Module.load (node:internal/modules/cjs/loader:1266:32) at Function._load (node:internal/modules/cjs/loader:1091:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12) at MessagePort.<anonymous> (node:internal/main/worker_thread:192:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:333:10) at [kOnMessage] (node:internal/worker:344:37) at MessagePort.<anonymous> (node:internal/worker:233:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Node.js v20.19.5 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:93:24
test/dts.test.ts > should emit a declaration file per format: test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/--emit-a-declaration-file-per-format/tsup.config.ts CLI Target: esnext ESM Build start CJS Build start CJS dist/input.js 970.00 B CJS ⚡️ Build success in 17ms ESM dist/input.mjs 78.00 B ESM ⚡️ Build success in 22ms node:internal/event_target:1105 process.nextTick(() => { throw err; }); ^ TypeError [Error]: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1521:14) at Object..js (node:internal/modules/cjs/loader:1623:10) at Module.load (node:internal/modules/cjs/loader:1266:32) at Function._load (node:internal/modules/cjs/loader:1091:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12) at MessagePort.<anonymous> (node:internal/main/worker_thread:192:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:333:10) at [kOnMessage] (node:internal/worker:344:37) at MessagePort.<anonymous> (node:internal/worker:233:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Node.js v20.19.5 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:75:24
test/dts.test.ts > custom tsconfig should pass to dts plugin: test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: tsconfig.build.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/--tsconfig-should-pass-to-dts-plugin/tsup.config.ts node:internal/event_target:1105 process.nextTick(() => { throw err; }); ^ TypeError [Error]: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1521:14) at Object..js (node:internal/modules/cjs/loader:1623:10) at Module.load (node:internal/modules/cjs/loader:1266:32) at Function._load (node:internal/modules/cjs/loader:1091:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12) at MessagePort.<anonymous> (node:internal/main/worker_thread:192:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:333:10) at [kOnMessage] (node:internal/worker:344:37) at MessagePort.<anonymous> (node:internal/worker:233:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Node.js v20.19.5 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:45:24
test/dts.test.ts > enable --dts-resolve for specific module: test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/----dts-resolve-for-specific-module/tsup.config.ts CLI Target: esnext CJS Build start CJS dist/input.js 1.90 MB CJS ⚡️ Build success in 271ms node:internal/event_target:1105 process.nextTick(() => { throw err; }); ^ TypeError [Error]: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1521:14) at Object..js (node:internal/modules/cjs/loader:1623:10) at Module.load (node:internal/modules/cjs/loader:1266:32) at Function._load (node:internal/modules/cjs/loader:1091:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12) at MessagePort.<anonymous> (node:internal/main/worker_thread:192:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:333:10) at [kOnMessage] (node:internal/worker:344:37) at MessagePort.<anonymous> (node:internal/worker:233:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Node.js v20.19.5 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:24:30
test/dts.test.ts > not bundle `package/subpath` in dts (resolve): test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/package.json CLI Target: esnext CJS Build start CJS dist/input.js 1.05 KB CJS ⚡️ Build success in 22ms node:internal/event_target:1105 process.nextTick(() => { throw err; }); ^ TypeError [Error]: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1521:14) at Object..js (node:internal/modules/cjs/loader:1623:10) at Module.load (node:internal/modules/cjs/loader:1266:32) at Function._load (node:internal/modules/cjs/loader:1091:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12) at MessagePort.<anonymous> (node:internal/main/worker_thread:192:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:333:10) at [kOnMessage] (node:internal/worker:344:37) at MessagePort.<anonymous> (node:internal/worker:233:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Node.js v20.19.5 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:7:30
test/css.test.ts > import css in --dts: test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/package.json CLI Target: esnext CJS Build start CJS dist/input.css 38.00 B CJS dist/input.js 14.00 B CJS ⚡️ Build success in 45ms node:internal/event_target:1105 process.nextTick(() => { throw err; }); ^ TypeError [Error]: Cannot read properties of undefined (reading 'call') at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6638:31) at Module._compile (node:internal/modules/cjs/loader:1521:14) at Object..js (node:internal/modules/cjs/loader:1623:10) at Module.load (node:internal/modules/cjs/loader:1266:32) at Function._load (node:internal/modules/cjs/loader:1091:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12) at MessagePort.<anonymous> (node:internal/main/worker_thread:192:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:333:10) at [kOnMessage] (node:internal/worker:344:37) at MessagePort.<anonymous> (node:internal/worker:233:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Node.js v20.19.5 ❯ Object.<anonymous> dist/rollup.js:6638:31 ❯ run test/utils.ts:61:11 ❯ test/css.test.ts:51:32
test (windows-latest, 18)
The strategy configuration was canceled because "test.ubuntu-latest_22" failed
test (windows-latest, 18)
The operation was canceled.
test (windows-latest, 20)
The strategy configuration was canceled because "test.ubuntu-latest_22" failed
test (windows-latest, 20)
The operation was canceled.
test (ubuntu-latest, 18)
The strategy configuration was canceled because "test.ubuntu-latest_22" failed
test/dts.test.ts > declaration files with multiple entrypoints #316: test/utils.ts#L61
Error: CLI Building entry: src/index.ts, src/bar/index.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/package.json CLI Target: esnext CJS Build start CJS dist/index.js 1.02 KB CJS dist/bar/index.js 1.02 KB CJS ⚡️ Build success in 36ms node:internal/event_target:1062 process.nextTick(() => { throw err; }); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/tsup/tsup/node_modules/.pnpm/obug@1.0.0_ms@2.1.3/node_modules/obug/dist/node.js from /home/runner/work/tsup/tsup/dist/rollup.js not supported. Instead change the require of node.js in /home/runner/work/tsup/tsup/dist/rollup.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6637:13) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:314:10) at [kOnMessage] (node:internal/worker:325:37) at MessagePort.<anonymous> (node:internal/worker:225:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) { code: 'ERR_REQUIRE_ESM' } Node.js v18.20.8 ❯ Object.<anonymous> dist/rollup.js:6637:13 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:466:30
test/dts.test.ts > dts only: ignore files: test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/package.json node:internal/event_target:1062 process.nextTick(() => { throw err; }); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/tsup/tsup/node_modules/.pnpm/obug@1.0.0_ms@2.1.3/node_modules/obug/dist/node.js from /home/runner/work/tsup/tsup/dist/rollup.js not supported. Instead change the require of node.js in /home/runner/work/tsup/tsup/dist/rollup.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6637:13) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:314:10) at [kOnMessage] (node:internal/worker:325:37) at MessagePort.<anonymous> (node:internal/worker:225:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) { code: 'ERR_REQUIRE_ESM' } Node.js v18.20.8 ❯ Object.<anonymous> dist/rollup.js:6637:13 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:439:24
test/dts.test.ts > should emit dts chunks per format (type: module): test/utils.ts#L61
Error: CLI Building entry: src/input1.ts, src/input2.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/--emit-dts-chunks-per-format--type--module-/tsup.config.ts CLI Target: esnext ESM Build start CJS Build start ESM dist/input2.js 85.00 B ESM dist/input1.js 85.00 B ESM ⚡️ Build success in 20ms CJS dist/input1.cjs 1.07 KB CJS dist/input2.cjs 1.07 KB CJS ⚡️ Build success in 19ms node:internal/event_target:1062 process.nextTick(() => { throw err; }); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/tsup/tsup/node_modules/.pnpm/obug@1.0.0_ms@2.1.3/node_modules/obug/dist/node.js from /home/runner/work/tsup/tsup/dist/rollup.js not supported. Instead change the require of node.js in /home/runner/work/tsup/tsup/dist/rollup.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6637:13) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:314:10) at [kOnMessage] (node:internal/worker:325:37) at MessagePort.<anonymous> (node:internal/worker:225:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) { code: 'ERR_REQUIRE_ESM' } Node.js v18.20.8 ❯ Object.<anonymous> dist/rollup.js:6637:13 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:156:24
test/dts.test.ts > should emit dts chunks per format: test/utils.ts#L61
Error: CLI Building entry: src/input1.ts, src/input2.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/--emit-dts-chunks-per-format/tsup.config.ts CLI Target: esnext ESM Build start CJS Build start ESM dist/input1.mjs 85.00 B ESM dist/input2.mjs 85.00 B ESM ⚡️ Build success in 20ms CJS dist/input1.js 1.07 KB CJS dist/input2.js 1.07 KB CJS ⚡️ Build success in 17ms node:internal/event_target:1062 process.nextTick(() => { throw err; }); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/tsup/tsup/node_modules/.pnpm/obug@1.0.0_ms@2.1.3/node_modules/obug/dist/node.js from /home/runner/work/tsup/tsup/dist/rollup.js not supported. Instead change the require of node.js in /home/runner/work/tsup/tsup/dist/rollup.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6637:13) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:314:10) at [kOnMessage] (node:internal/worker:325:37) at MessagePort.<anonymous> (node:internal/worker:225:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) { code: 'ERR_REQUIRE_ESM' } Node.js v18.20.8 ❯ Object.<anonymous> dist/rollup.js:6637:13 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:114:24
test/dts.test.ts > should emit a declaration file per format (type: module): test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/--emit-a-declaration-file-per-format--type--module-/tsup.config.ts CLI Target: esnext ESM Build start CJS Build start ESM dist/input.js 78.00 B ESM ⚡️ Build success in 21ms CJS dist/input.cjs 970.00 B CJS ⚡️ Build success in 16ms node:internal/event_target:1062 process.nextTick(() => { throw err; }); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/tsup/tsup/node_modules/.pnpm/obug@1.0.0_ms@2.1.3/node_modules/obug/dist/node.js from /home/runner/work/tsup/tsup/dist/rollup.js not supported. Instead change the require of node.js in /home/runner/work/tsup/tsup/dist/rollup.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6637:13) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:314:10) at [kOnMessage] (node:internal/worker:325:37) at MessagePort.<anonymous> (node:internal/worker:225:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) { code: 'ERR_REQUIRE_ESM' } Node.js v18.20.8 ❯ Object.<anonymous> dist/rollup.js:6637:13 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:93:24
test/dts.test.ts > should emit a declaration file per format: test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/--emit-a-declaration-file-per-format/tsup.config.ts CLI Target: esnext ESM Build start CJS Build start CJS dist/input.js 970.00 B CJS ⚡️ Build success in 15ms ESM dist/input.mjs 78.00 B ESM ⚡️ Build success in 19ms node:internal/event_target:1062 process.nextTick(() => { throw err; }); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/tsup/tsup/node_modules/.pnpm/obug@1.0.0_ms@2.1.3/node_modules/obug/dist/node.js from /home/runner/work/tsup/tsup/dist/rollup.js not supported. Instead change the require of node.js in /home/runner/work/tsup/tsup/dist/rollup.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6637:13) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:314:10) at [kOnMessage] (node:internal/worker:325:37) at MessagePort.<anonymous> (node:internal/worker:225:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) { code: 'ERR_REQUIRE_ESM' } Node.js v18.20.8 ❯ Object.<anonymous> dist/rollup.js:6637:13 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:75:24
test/dts.test.ts > custom tsconfig should pass to dts plugin: test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: tsconfig.build.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/--tsconfig-should-pass-to-dts-plugin/tsup.config.ts node:internal/event_target:1062 process.nextTick(() => { throw err; }); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/tsup/tsup/node_modules/.pnpm/obug@1.0.0_ms@2.1.3/node_modules/obug/dist/node.js from /home/runner/work/tsup/tsup/dist/rollup.js not supported. Instead change the require of node.js in /home/runner/work/tsup/tsup/dist/rollup.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6637:13) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:314:10) at [kOnMessage] (node:internal/worker:325:37) at MessagePort.<anonymous> (node:internal/worker:225:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) { code: 'ERR_REQUIRE_ESM' } Node.js v18.20.8 ❯ Object.<anonymous> dist/rollup.js:6637:13 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:45:24
test/dts.test.ts > enable --dts-resolve for specific module: test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/.cache/----dts-resolve-for-specific-module/tsup.config.ts CLI Target: esnext CJS Build start CJS dist/input.js 1.90 MB CJS ⚡️ Build success in 283ms node:internal/event_target:1062 process.nextTick(() => { throw err; }); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/tsup/tsup/node_modules/.pnpm/obug@1.0.0_ms@2.1.3/node_modules/obug/dist/node.js from /home/runner/work/tsup/tsup/dist/rollup.js not supported. Instead change the require of node.js in /home/runner/work/tsup/tsup/dist/rollup.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6637:13) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:314:10) at [kOnMessage] (node:internal/worker:325:37) at MessagePort.<anonymous> (node:internal/worker:225:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) { code: 'ERR_REQUIRE_ESM' } Node.js v18.20.8 ❯ Object.<anonymous> dist/rollup.js:6637:13 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:24:30
test/dts.test.ts > not bundle `package/subpath` in dts (resolve): test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/package.json CLI Target: esnext CJS Build start CJS dist/input.js 1.05 KB CJS ⚡️ Build success in 29ms node:internal/event_target:1062 process.nextTick(() => { throw err; }); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/tsup/tsup/node_modules/.pnpm/obug@1.0.0_ms@2.1.3/node_modules/obug/dist/node.js from /home/runner/work/tsup/tsup/dist/rollup.js not supported. Instead change the require of node.js in /home/runner/work/tsup/tsup/dist/rollup.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6637:13) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:314:10) at [kOnMessage] (node:internal/worker:325:37) at MessagePort.<anonymous> (node:internal/worker:225:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) { code: 'ERR_REQUIRE_ESM' } Node.js v18.20.8 ❯ Object.<anonymous> dist/rollup.js:6637:13 ❯ run test/utils.ts:61:11 ❯ test/dts.test.ts:7:30
test/css.test.ts > import css in --dts: test/utils.ts#L61
Error: CLI Building entry: input.ts CLI Using tsconfig: ../../../tsconfig.json CLI tsup v8.5.0 CLI Using tsup config: /home/runner/work/tsup/tsup/test/package.json CLI Target: esnext CJS Build start CJS dist/input.css 38.00 B CJS dist/input.js 14.00 B CJS ⚡️ Build success in 39ms node:internal/event_target:1062 process.nextTick(() => { throw err; }); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/tsup/tsup/node_modules/.pnpm/obug@1.0.0_ms@2.1.3/node_modules/obug/dist/node.js from /home/runner/work/tsup/tsup/dist/rollup.js not supported. Instead change the require of node.js in /home/runner/work/tsup/tsup/dist/rollup.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/home/runner/work/tsup/tsup/dist/rollup.js:6637:13) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:314:10) at [kOnMessage] (node:internal/worker:325:37) at MessagePort.<anonymous> (node:internal/worker:225:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) { code: 'ERR_REQUIRE_ESM' } Node.js v18.20.8 ❯ Object.<anonymous> dist/rollup.js:6637:13 ❯ run test/utils.ts:61:11 ❯ test/css.test.ts:51:32