@lmjs/core 2.4.2 → 2.5.1
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/build/bundle.js +10 -0
- package/dist/lumenjs-core.js +16 -3
- package/package.json +1 -1
- package/src/_re.js +86 -4
- package/vendor/acorn.js +10 -0
- package/vendor/reconnecting-websocket.js +25 -5
package/build/bundle.js
CHANGED
|
@@ -112,9 +112,19 @@ function buildCommonTail() {
|
|
|
112
112
|
// Vendored build (UMD, attaches `globalThis.astring`) from
|
|
113
113
|
// node_modules/astring/dist/astring.min.js — see PROVENANCE.md.
|
|
114
114
|
// Already minified third-party code — nothing to strip.
|
|
115
|
+
// Dev-only block (2026-10-03): astring + acorn + walk.js exist only to rewrite view <script>s in the browser.
|
|
116
|
+
// `lm build` precompiles every script (HST v3 `pre`) and cuts this block out of the runtime it ships
|
|
117
|
+
// (fcs.js stripDevOnlyRuntime); `lm serve` keeps it for hot reload. Markers are plain statements so they
|
|
118
|
+
// survive minification and can be found textually.
|
|
119
|
+
parts.push('var __lmDevOnlyStart__ = 1;');
|
|
115
120
|
parts.push(readVendor('astring.js'));
|
|
121
|
+
// acorn (2026-10-03): view <script> blocks now ship as source and are parsed at mount time, instead of shipping
|
|
122
|
+
// their ESTree in the bundle (the trees were ~5x the source and most of a built app.js). Minified UMD build of
|
|
123
|
+
// acorn 8.18.0 — the same parser and options the CLI uses — attaching `globalThis.acorn`.
|
|
124
|
+
parts.push(readVendor('acorn.js'));
|
|
116
125
|
|
|
117
126
|
parts.push(stripComments(read('walk.js')));
|
|
127
|
+
parts.push('var __lmDevOnlyEnd__ = 1;');
|
|
118
128
|
parts.push(stripComments(read('_re.js')));
|
|
119
129
|
parts.push(stripComments(read('reactive.js')));
|
|
120
130
|
parts.push(stripComments(read('update-check.js')));
|