@vesk/vesk-cli 0.2.80 → 0.2.82

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.
Files changed (2) hide show
  1. package/dist/cli.js +13 -0
  2. package/package.json +5 -5
package/dist/cli.js CHANGED
@@ -22616,6 +22616,7 @@ __export(server_utils_exports, {
22616
22616
  extractTopLevelNames: () => extractTopLevelNames,
22617
22617
  getClientIp: () => getClientIp,
22618
22618
  getClientProtocol: () => getClientProtocol,
22619
+ getRuntimeModule: () => getRuntimeModule,
22619
22620
  indent: () => indent,
22620
22621
  isStatic: () => isStatic,
22621
22622
  loadRuntimeImports: () => loadRuntimeImports,
@@ -23471,6 +23472,9 @@ function resolveComponentName(source) {
23471
23472
  function setRuntimeModule(mod) {
23472
23473
  __cachedRuntimeModule = mod;
23473
23474
  }
23475
+ function getRuntimeModule() {
23476
+ return __cachedRuntimeModule || index_server_exports || null;
23477
+ }
23474
23478
  function loadRuntimeImports(importStrs) {
23475
23479
  const pairs = extractRuntimeBindingPairs(importStrs);
23476
23480
  const mod = __cachedRuntimeModule || index_server_exports;
@@ -37646,6 +37650,15 @@ export const createHash = () => ({ update: () => {}, digest: () => '' });
37646
37650
  outfile,
37647
37651
  minify: false,
37648
37652
  sourcemap: false,
37653
+ // Node targets run from a real deployment root: leave bare packages to the
37654
+ // platform's dependency tracer instead of inlining them. Bundling CJS
37655
+ // packages into the ESM handler turned their `require('events')` and
37656
+ // friends into esbuild's throwing `__require` shim (slintorm's pg driver
37657
+ // failed with "Dynamic require of \"events\" is not supported"), and it
37658
+ // inflated the single function file to millions of lines — the cold-start
37659
+ // memory spike behind the SIGKILLs. Edge targets have no node_modules, so
37660
+ // they keep bundling everything.
37661
+ packages: nodeBuiltins ? "external" : void 0,
37649
37662
  logOverride: { "direct-eval": "silent" },
37650
37663
  plugins
37651
37664
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vesk/vesk-cli",
3
- "version": "0.2.80",
3
+ "version": "0.2.82",
4
4
  "type": "module",
5
5
  "description": "Vesk — compiler-first framework for the post-VDOM web. vesk dev, vesk build.",
6
6
  "bin": {
@@ -8,10 +8,10 @@
8
8
  },
9
9
  "main": "./dist/cli.js",
10
10
  "dependencies": {
11
- "@vesk/adapter": "^0.2.80",
12
- "@vesk/compiler": "^0.2.80",
13
- "@vesk/plugin-tailwind": "^0.2.80",
14
- "@vesk/runtime": "^0.2.80",
11
+ "@vesk/adapter": "^0.2.82",
12
+ "@vesk/compiler": "^0.2.82",
13
+ "@vesk/plugin-tailwind": "^0.2.82",
14
+ "@vesk/runtime": "^0.2.82",
15
15
  "esrap": "^2.3.0",
16
16
  "typescript": "^5.8.0",
17
17
  "ws": "^8.18.0",