aboutsummaryrefslogtreecommitdiffstats
path: root/build.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-21 08:35:17 -0700
committerAdam Soltys <[email protected]>2026-09-21 08:35:17 -0700
commite32e34ee218013616257882d701dedc98d7a5edc (patch)
treee978dfe04ef4c1feaa50e934d812b30277662d2c /build.js
parente2ca38a1088a0ec0595432726b2e708b14a811ea (diff)
downloadcoinosv3-e32e34ee218013616257882d701dedc98d7a5edc.tar.gz
coinosv3-e32e34ee218013616257882d701dedc98d7a5edc.zip
Build: the point of sale is a real deferred feature — build.js generates the registry, not features/index.js.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Diffstat (limited to 'build.js')
-rw-r--r--build.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.js b/build.js
index fc58f8f..dcb7870 100644
--- a/build.js
+++ b/build.js
@@ -252,7 +252,7 @@ export async function buildSwNwc({ minify = true } = {}) {
// feature's code (and its network endpoints) never enters the bundle.
// NB order matters and must match src/features/index.js — nwc sits after ark
// because it drives ark's headless pay/balance seam.
-const ALL_FEATURES = { gifts: 'giftsFeature', ark: 'arkFeature', nostrlogin: 'nostrLoginFeature', names: 'namesFeature', zaps: 'zapsFeature', nwc: 'nwcFeature', hats: 'hatsFeature', sync: 'syncFeature', messages: 'messagesFeature' };
+const ALL_FEATURES = { gifts: 'giftsFeature', ark: 'arkFeature', nostrlogin: 'nostrLoginFeature', names: 'namesFeature', zaps: 'zapsFeature', nwc: 'nwcFeature', hats: 'hatsFeature', sync: 'syncFeature', messages: 'messagesFeature', pos: 'posFeature' };
// Features with no first-frame surface load as separate chunks right after
// boot (dynamic import; real files in the split build, inlined in the
@@ -262,7 +262,7 @@ const ALL_FEATURES = { gifts: 'giftsFeature', ark: 'arkFeature', nostrlogin: 'no
// NOT deferrable: ark (balance on the home screen), messages (deep-linked
// profiles + the boot shell), gifts is deferrable because app.js awaits the
// deferred load before the bootUrl check when the path looks like a gift.
-const DEFERRED_FEATURES = ['gifts', 'nwc', 'hats'];
+const DEFERRED_FEATURES = ['gifts', 'nwc', 'hats', 'pos'];
export function enabledFeatures(spec = process.env.HAL_FEATURES) {
if (spec == null) return Object.keys(ALL_FEATURES);