diff options
| author | Adam Soltys <[email protected]> | 2026-09-21 08:35:17 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-21 08:35:17 -0700 |
| commit | e32e34ee218013616257882d701dedc98d7a5edc (patch) | |
| tree | e978dfe04ef4c1feaa50e934d812b30277662d2c | |
| parent | e2ca38a1088a0ec0595432726b2e708b14a811ea (diff) | |
| download | coinosv3-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]>
| -rw-r--r-- | build.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
