@geastack/core 0.1.52 → 0.1.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geastack/core",
3
- "version": "0.1.52",
3
+ "version": "0.1.53",
4
4
  "description": "GeaStack app API, reactivity headers, runtime sources, and type declarations.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -4724,14 +4724,16 @@ if (hasFlag('--gea-ir-backend') || hasFlag('--gea-replace-renderers')) {
4724
4724
  // compiles in under 1 GiB of live heap) while stopping V8 from growing the heap
4725
4725
  // freely: under a 32 GiB cap the same compile held ~1.8 GB resident, mostly
4726
4726
  // uncollected garbage.
4727
- // GEA_GEATSC_MAX_OLD_SPACE_SIZE (MiB) lowers or raises that limit for a
4728
- // machine with less memory to spare; a heap the analysis outgrows then fails
4729
- // the build instead of exhausting the machine.
4727
+ // An app whose analysis needs more (three.js and a game on top of it peaks
4728
+ // past 4 GiB) states its own limit in package.json: compiler.heapMiB in its
4729
+ // target's build settings. GEA_GEATSC_MAX_OLD_SPACE_SIZE (MiB) overrides both
4730
+ // for a machine with less memory to spare; a heap the analysis outgrows then
4731
+ // fails the build instead of exhausting the machine.
4730
4732
  // Native interface call graphs can exceed V8's default ~1 MiB stack during
4731
4733
  // closure analysis; keep the compiler stack below the host's 8 MiB limit.
4732
4734
  const geatscHeapMiB = (() => {
4733
4735
  const stated = process.env.GEA_GEATSC_MAX_OLD_SPACE_SIZE
4734
- if (stated === undefined || stated === '') return 4096
4736
+ if (stated === undefined || stated === '') return compilerSettings.heapMiB ?? 4096
4735
4737
  const value = Number(stated)
4736
4738
  if (!Number.isInteger(value) || value < 512) fail(`GEA_GEATSC_MAX_OLD_SPACE_SIZE must be a whole number of MiB (at least 512): ${stated}`)
4737
4739
  return value