diff options
Diffstat (limited to 'src/features')
| -rw-r--r-- | src/features/index.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/features/index.js b/src/features/index.js new file mode 100644 index 0000000..590020a --- /dev/null +++ b/src/features/index.js @@ -0,0 +1,16 @@ +// Which optional features this build includes. In dev (and by default in +// builds) everything is on. Release builds can exclude features entirely: +// build.js replaces this module's contents based on HAL_FEATURES, so a +// disabled feature's code — and its network endpoints — never enters the +// bundle. See featureIndexSource() in build.js. + +import { giftsFeature } from './gifts.js'; +import { swapsFeature } from './swaps.js'; +import { arkFeature } from './ark.js'; +import { spFeature } from './sp.js'; + +// NB order is meaningful where hooks stack: gifts' receive takeover and +// balance line come before ark's, matching the pre-plugin layout. +export function buildFeatures(ctx) { + return [giftsFeature(ctx), swapsFeature(ctx), arkFeature(ctx), spFeature(ctx)]; +} |
