oficina / mapa Public

Clone
git clone https://amadan.net/oficina/mapa

Plain git — no account needed to clone.

Download

Download this file

1// bundles.mjs — the bundles the app ships, in one list, with the options
2// they are built with. build-bundles.mjs builds them into
3// internal/mapa/static/<name>.<hash>.js, which is committed and embedded;
4// the app runs no build step (spec §6.2). Docs' fixtures/bundles.mjs is
5// the model.
6//
7// One bundle for now. Phase 1 builds it and loads it nowhere; Phase 2
8// mounts the editor from it, deferred, on pages the viewer may edit.
9export const bundles = [
10 { name: 'editor', entry: 'editor-entry.js' }
11]
12
13export const options = { bundle: true, minify: true, target: 'es2020' }
14
15// budget is gate L12: the editor bundle's ceiling, gzipped.
16export const budget = 120 * 1024
17