Skip to content

Regression: cannot build with tsup starting with version 2.1.0 #90

@razor-x

Description

@razor-x

See error (collapsed) below. Confirmed in this PR seamapi/fake-seam-connect#32

Details
> tsup

CLI Building entry: src/index.ts
CLI Using tsconfig: tsconfig.build.json
CLI tsup v7.1.0
CLI Using tsup config: /home/runner/work/fake-template/fake-template/tsup.config.ts
CLI Target: es2021
CLI Cleaning output folder
ESM Build start
CJS Build start
DTS Build start
DTS ⚡️ Build success in 4582ms
DTS dist/index.d.ts  3.64 KB
DTS dist/index.d.cts 3.64 KB

<--- Last few GCs --->

[2169:0x58d7d00]    40727 ms: Mark-sweep (reduce) 2028.5 (2083.1) -> 2026.4 (2081.5) MB, 2440.7 / 0.0 ms  (+ 2.6 ms in 3 steps since start of marking, biggest step 2.4 ms, walltime since start of marking 2451 ms) (average mu = 0.293, current mu = 0.167) a[2169:0x58d7d00]    43245 ms: Mark-sweep (reduce) 2026.8 (2081.7) -> 2026.8 (2082.0) MB, 2514.4 / 0.0 ms  (average mu = 0.153, current mu = 0.001) allocation failure; GC in old space requested


<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
 1: 0xb7a940 node::Abort() [node]
 2: 0xa8e823  [node]
 3: 0xd5c990 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
 4: 0xd5cd37 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
 5: 0xf3a435  [node]
 6: 0xf4c91d v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
 7: 0xf2701e v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
 8: 0xf283e7 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
 9: 0xf095ba v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
10: 0x12ce9bd v8::internal::Runtime_AllocateInOldGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
11: 0x16fb6f9  [node]
Aborted (core dumped)
Error: Process completed with exit code 134.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions