@valbuild/tanstack-build 0.148.5 → 0.150.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/CHANGELOG.md +14 -0
- package/dist/declarations/src/index.d.ts +1 -0
- package/dist/declarations/src/node/index.d.ts +1 -0
- package/dist/declarations/src/node/rolldown.d.ts +6 -0
- package/dist/declarations/src/rolldown.d.ts +38 -0
- package/dist/declarations/src/wire.d.ts +14 -0
- package/dist/{regeneratorValues-77cb8c45.esm.js → regeneratorValues-a8bd356a.esm.js} +1 -1
- package/dist/valbuild-tanstack-build.cjs.dev.js +137 -27
- package/dist/valbuild-tanstack-build.cjs.prod.js +137 -27
- package/dist/valbuild-tanstack-build.esm.js +116 -26
- package/node/dist/valbuild-tanstack-build-node.cjs.dev.js +10 -0
- package/node/dist/valbuild-tanstack-build-node.cjs.prod.js +10 -0
- package/node/dist/valbuild-tanstack-build-node.esm.js +11 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @valbuild/tanstack-build
|
|
2
2
|
|
|
3
|
+
## 0.150.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#942](https://github.com/valbuild/val/pull/942) [`fd9ee2a`](https://github.com/valbuild/val/commit/fd9ee2ad76ef45bc6c4801aaccaae6e183960f11) Thanks [@freekh](https://github.com/freekh)! - `val publish` builds with native `rolldown` instead of rolldown's WebAssembly build. A site whose lockfile resolved `@napi-rs/wasm-runtime` 1.2.6 (released 2026-10-25) could no longer publish: `@rolldown/browser` 1.2.15 accepts that version but does not load with it, and `val publish` failed with "@valbuild/tanstack-build and rolldown … could not be loaded: Cannot set properties of undefined (setting 'initWorker')". Native `rolldown` does not use `@napi-rs/wasm-runtime` at all, so the site's version of it no longer matters. The Studio still builds in the browser with `@rolldown/browser`, from Val's own pinned versions.
|
|
8
|
+
|
|
9
|
+
New: `val check-build-tools` loads what `val publish` builds with and builds a one-line module with it, without asking content anything, and fails when it could not. Val Build runs it on an upgrade's install before a project whose CI publishes it can publish the upgrade.
|
|
10
|
+
|
|
11
|
+
## 0.149.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#917](https://github.com/valbuild/val/pull/917) [`48ca810`](https://github.com/valbuild/val/commit/48ca810a985af2a0af845c779d39c3da7f7fb0fc) Thanks [@freekh](https://github.com/freekh)! - `val publish` now declares `@valbuild/ui` at the version your project actually runs. A project that does not declare `@valbuild/ui` gets it added when it is wired for the platform, because the Studio's bundle lives there. It used to be added at `@valbuild/core`'s version, which can be an older release than the `@valbuild/ui` your `@valbuild/tanstack` uses. The two are no longer always released together, and the mismatch could install a second, older Studio. It now takes the version installed beside `@valbuild/tanstack`, and if no installed copy can be found it says so in a warning. A project that declares `@valbuild/ui` itself is left unchanged.
|
|
16
|
+
|
|
3
17
|
## 0.148.5
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -16,3 +16,4 @@ export { nodeShims, nodeShimSources, NODE_SHIMS, REEXPORT, SHIM_PREFIX, } from "
|
|
|
16
16
|
export { cssModuleLoader } from "./cssModules.js";
|
|
17
17
|
export { routeSplitter } from "./routeSplitter.js";
|
|
18
18
|
export { generateRouteTree, isFileBased } from "./routes.js";
|
|
19
|
+
export { nativeRolldown } from "./rolldown.js";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { build } from "@rolldown/browser";
|
|
2
|
+
import type { parseAstAsync } from "@rolldown/browser/parseAst";
|
|
3
|
+
/**
|
|
4
|
+
* The bundler the build runs on, chosen by where it runs.
|
|
5
|
+
*
|
|
6
|
+
* The build is the same code in a browser tab and in Node, and rolldown comes
|
|
7
|
+
* in two builds with one API: `@rolldown/browser`, compiled to WebAssembly,
|
|
8
|
+
* and `rolldown`, the native one. A tab can only have the first. Node should
|
|
9
|
+
* not load it: it reaches its WebAssembly through `@napi-rs/wasm-runtime`, a
|
|
10
|
+
* dependency whose version the SITE'S lockfile picks, and rolldown's own
|
|
11
|
+
* ranges have let a release in that does not load (2026-10-26, below). The
|
|
12
|
+
* native one has no such glue. So nothing in this package imports either
|
|
13
|
+
* statically: Node is handed the native one (`useRolldown`, with
|
|
14
|
+
* `nativeRolldown` from `@valbuild/tanstack-build/node`), and anything not
|
|
15
|
+
* handed one gets the browser build, imported on first use.
|
|
16
|
+
*
|
|
17
|
+
* Why not just the browser build in both, as it was until 2026-10-26:
|
|
18
|
+
* `@rolldown/browser` 1.2.15 pins `@emnapi/core` 2.0.0-alpha.5 and asks for
|
|
19
|
+
* `@napi-rs/wasm-runtime` `~1.2.5`, and wasm-runtime 1.2.6 (2026-10-25) only
|
|
20
|
+
* works with `@emnapi/core` 1.x or 2.0.0-beta.2 -- loading it throws
|
|
21
|
+
* "Cannot set properties of undefined (setting 'initWorker')". Any site whose
|
|
22
|
+
* lockfile was resolved after that release (an upgrade, a `pnpm update`)
|
|
23
|
+
* could no longer `val publish`. The Studio's tab and Val Build's upgrade page
|
|
24
|
+
* are not exposed to it: they bundle the browser build from their own
|
|
25
|
+
* lockfiles, where the builder tab's end-to-end specs load it before a
|
|
26
|
+
* release.
|
|
27
|
+
*/
|
|
28
|
+
export interface Rolldown {
|
|
29
|
+
build: typeof build;
|
|
30
|
+
parseAstAsync: typeof parseAstAsync;
|
|
31
|
+
}
|
|
32
|
+
/** Build on `rolldown` from now on. Node calls it with `nativeRolldown`. */
|
|
33
|
+
export declare function useRolldown(rolldown: Rolldown): void;
|
|
34
|
+
/**
|
|
35
|
+
* The bundler, loading the browser build if nobody chose one. Called early by
|
|
36
|
+
* a tab that wants the WebAssembly compiled before the first build needs it.
|
|
37
|
+
*/
|
|
38
|
+
export declare function loadRolldown(): Promise<Rolldown>;
|
|
@@ -41,6 +41,20 @@ export interface WireOptions {
|
|
|
41
41
|
commit: string;
|
|
42
42
|
branch: string;
|
|
43
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* The version of `@valbuild/ui` the checkout has installed: the Studio its
|
|
46
|
+
* `@valbuild/tanstack` runs. What `@valbuild/ui` is declared at when the
|
|
47
|
+
* project does not declare it, so the layer ships the Studio the project
|
|
48
|
+
* already runs.
|
|
49
|
+
*
|
|
50
|
+
* Only a caller with the installed packages can say -- this sees source
|
|
51
|
+
* files, never `node_modules` or a lockfile. Without it, `@valbuild/core`'s
|
|
52
|
+
* version stands in, which always names a published `@valbuild/ui` (ui
|
|
53
|
+
* depends on core, so a core release is a ui release) but can name an older
|
|
54
|
+
* one: the packages are versioned together only when they are released
|
|
55
|
+
* together.
|
|
56
|
+
*/
|
|
57
|
+
studioVersion?: string;
|
|
44
58
|
}
|
|
45
59
|
/**
|
|
46
60
|
* Where a Val project keeps the module this replaces.
|
|
@@ -457,4 +457,4 @@ function _regeneratorValues(e) {
|
|
|
457
457
|
throw new TypeError(typeof e + " is not iterable");
|
|
458
458
|
}
|
|
459
459
|
|
|
460
|
-
export { ASSET_BASE as A, INLINE_LIMIT as I,
|
|
460
|
+
export { ASSET_BASE as A, INLINE_LIMIT as I, _slicedToArray as _, _createForOfIteratorHelper as a, _asyncToGenerator as b, _regenerator as c, _toConsumableArray as d, _typeof as e, _objectSpread2 as f, _defineProperty as g, _regeneratorValues as h, assetModule as i, isAsset as j, base64Bytes as k, _toPropertyKey as l, resolveAsset as r, sha256Hex as s };
|
|
@@ -3,12 +3,85 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var regeneratorValues = require('./regeneratorValues-f5d7ce8a.cjs.dev.js');
|
|
6
|
-
var browser = require('@rolldown/browser');
|
|
7
6
|
var projectPaths = require('./projectPaths-f222255a.cjs.dev.js');
|
|
8
|
-
var parseAst = require('@rolldown/browser/parseAst');
|
|
9
7
|
var tailwindcss = require('tailwindcss');
|
|
10
8
|
var artifactKeys = require('./artifactKeys-ad3e41fc.cjs.dev.js');
|
|
11
9
|
|
|
10
|
+
function _interopNamespace(e) {
|
|
11
|
+
if (e && e.__esModule) return e;
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n["default"] = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The bundler the build runs on, chosen by where it runs.
|
|
30
|
+
*
|
|
31
|
+
* The build is the same code in a browser tab and in Node, and rolldown comes
|
|
32
|
+
* in two builds with one API: `@rolldown/browser`, compiled to WebAssembly,
|
|
33
|
+
* and `rolldown`, the native one. A tab can only have the first. Node should
|
|
34
|
+
* not load it: it reaches its WebAssembly through `@napi-rs/wasm-runtime`, a
|
|
35
|
+
* dependency whose version the SITE'S lockfile picks, and rolldown's own
|
|
36
|
+
* ranges have let a release in that does not load (2026-10-26, below). The
|
|
37
|
+
* native one has no such glue. So nothing in this package imports either
|
|
38
|
+
* statically: Node is handed the native one (`useRolldown`, with
|
|
39
|
+
* `nativeRolldown` from `@valbuild/tanstack-build/node`), and anything not
|
|
40
|
+
* handed one gets the browser build, imported on first use.
|
|
41
|
+
*
|
|
42
|
+
* Why not just the browser build in both, as it was until 2026-10-26:
|
|
43
|
+
* `@rolldown/browser` 1.2.15 pins `@emnapi/core` 2.0.0-alpha.5 and asks for
|
|
44
|
+
* `@napi-rs/wasm-runtime` `~1.2.5`, and wasm-runtime 1.2.6 (2026-10-25) only
|
|
45
|
+
* works with `@emnapi/core` 1.x or 2.0.0-beta.2 -- loading it throws
|
|
46
|
+
* "Cannot set properties of undefined (setting 'initWorker')". Any site whose
|
|
47
|
+
* lockfile was resolved after that release (an upgrade, a `pnpm update`)
|
|
48
|
+
* could no longer `val publish`. The Studio's tab and Val Build's upgrade page
|
|
49
|
+
* are not exposed to it: they bundle the browser build from their own
|
|
50
|
+
* lockfiles, where the builder tab's end-to-end specs load it before a
|
|
51
|
+
* release.
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
var chosen = null;
|
|
55
|
+
|
|
56
|
+
/** Build on `rolldown` from now on. Node calls it with `nativeRolldown`. */
|
|
57
|
+
function useRolldown(rolldown) {
|
|
58
|
+
chosen = Promise.resolve(rolldown);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The bundler, loading the browser build if nobody chose one. Called early by
|
|
63
|
+
* a tab that wants the WebAssembly compiled before the first build needs it.
|
|
64
|
+
*/
|
|
65
|
+
function loadRolldown() {
|
|
66
|
+
if (chosen === null) {
|
|
67
|
+
var loading = Promise.all([Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@rolldown/browser')); }), Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@rolldown/browser/parseAst')); })]).then(function (_ref) {
|
|
68
|
+
var _ref2 = regeneratorValues._slicedToArray(_ref, 2),
|
|
69
|
+
bundler = _ref2[0],
|
|
70
|
+
parser = _ref2[1];
|
|
71
|
+
return {
|
|
72
|
+
build: bundler.build,
|
|
73
|
+
parseAstAsync: parser.parseAstAsync
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
// A load that failed is tried again by the next caller, not kept.
|
|
77
|
+
loading["catch"](function () {
|
|
78
|
+
if (chosen === loading) chosen = null;
|
|
79
|
+
});
|
|
80
|
+
chosen = loading;
|
|
81
|
+
}
|
|
82
|
+
return chosen;
|
|
83
|
+
}
|
|
84
|
+
|
|
12
85
|
// A minimal posix path resolver. The builder runs in the browser, so node:path
|
|
13
86
|
// is unavailable, and pulling a polyfill in for two functions is not worth it.
|
|
14
87
|
|
|
@@ -63,14 +136,20 @@ function parse(_x, _x2) {
|
|
|
63
136
|
/** Depth-first walk carrying a parent stack, nearest parent last. */
|
|
64
137
|
function _parse() {
|
|
65
138
|
_parse = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee(path, code) {
|
|
139
|
+
var _yield$loadRolldown, parseAstAsync;
|
|
66
140
|
return regeneratorValues._regenerator().w(function (_context) {
|
|
67
141
|
while (1) switch (_context.n) {
|
|
68
142
|
case 0:
|
|
69
143
|
_context.n = 1;
|
|
70
|
-
return
|
|
144
|
+
return loadRolldown();
|
|
145
|
+
case 1:
|
|
146
|
+
_yield$loadRolldown = _context.v;
|
|
147
|
+
parseAstAsync = _yield$loadRolldown.parseAstAsync;
|
|
148
|
+
_context.n = 2;
|
|
149
|
+
return parseAstAsync(code, {
|
|
71
150
|
lang: langOf(path)
|
|
72
151
|
}, path);
|
|
73
|
-
case
|
|
152
|
+
case 2:
|
|
74
153
|
return _context.a(2, _context.v);
|
|
75
154
|
}
|
|
76
155
|
}, _callee);
|
|
@@ -620,16 +699,21 @@ function importsOf(_x, _x2) {
|
|
|
620
699
|
}
|
|
621
700
|
function _importsOf() {
|
|
622
701
|
_importsOf = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee(path, code) {
|
|
623
|
-
var lang, ast, sources, _iterator, _step, statement, source;
|
|
702
|
+
var lang, _yield$loadRolldown, parseAstAsync, ast, sources, _iterator, _step, statement, source;
|
|
624
703
|
return regeneratorValues._regenerator().w(function (_context) {
|
|
625
704
|
while (1) switch (_context.n) {
|
|
626
705
|
case 0:
|
|
627
706
|
lang = path.endsWith(".tsx") || path.endsWith(".jsx") ? "tsx" : "ts";
|
|
628
707
|
_context.n = 1;
|
|
629
|
-
return
|
|
708
|
+
return loadRolldown();
|
|
709
|
+
case 1:
|
|
710
|
+
_yield$loadRolldown = _context.v;
|
|
711
|
+
parseAstAsync = _yield$loadRolldown.parseAstAsync;
|
|
712
|
+
_context.n = 2;
|
|
713
|
+
return parseAstAsync(code, {
|
|
630
714
|
lang: lang
|
|
631
715
|
}, path);
|
|
632
|
-
case
|
|
716
|
+
case 2:
|
|
633
717
|
ast = _context.v;
|
|
634
718
|
sources = [];
|
|
635
719
|
_iterator = regeneratorValues._createForOfIteratorHelper(ast.body);
|
|
@@ -1101,7 +1185,7 @@ var packageJson = {
|
|
|
1101
1185
|
url: "git+https://github.com/valbuild/val.git"
|
|
1102
1186
|
},
|
|
1103
1187
|
license: "MIT",
|
|
1104
|
-
version: "0.
|
|
1188
|
+
version: "0.150.1",
|
|
1105
1189
|
sideEffects: false,
|
|
1106
1190
|
main: "dist/valbuild-tanstack-build.cjs.js",
|
|
1107
1191
|
module: "dist/valbuild-tanstack-build.esm.js",
|
|
@@ -1166,7 +1250,7 @@ var packageJson = {
|
|
|
1166
1250
|
"@types/jest": "^30.0.0",
|
|
1167
1251
|
"@types/node": "^26.4.0",
|
|
1168
1252
|
"@types/react": "^19.2.18",
|
|
1169
|
-
rolldown: "
|
|
1253
|
+
rolldown: "1.2.9",
|
|
1170
1254
|
tsx: "^4.23.12",
|
|
1171
1255
|
typescript: "^6.0.3"
|
|
1172
1256
|
},
|
|
@@ -1557,6 +1641,13 @@ function wireUp(files, options) {
|
|
|
1557
1641
|
* a TRANSITIVE dependency, and the vendor layer is built from what a project
|
|
1558
1642
|
* DECLARES intersected with what it imports. Undeclared, the Studio loads its
|
|
1559
1643
|
* shell and then 404s on its own bundle.
|
|
1644
|
+
*
|
|
1645
|
+
* At the version the project already runs (`studioVersion`), not at
|
|
1646
|
+
* `@valbuild/core`'s: the two stopped moving together, and a site declaring
|
|
1647
|
+
* an older ui than its `@valbuild/tanstack` installs a second, older Studio
|
|
1648
|
+
* the next time anything installs from this `package.json`. A rewrite also
|
|
1649
|
+
* means the site's `package.json` is no longer its template's, so the
|
|
1650
|
+
* templates declare it themselves and this leaves them alone.
|
|
1560
1651
|
*/
|
|
1561
1652
|
var manifestRaw = files["package.json"];
|
|
1562
1653
|
if (manifestRaw) {
|
|
@@ -1564,14 +1655,19 @@ function wireUp(files, options) {
|
|
|
1564
1655
|
var _manifest$dependencie;
|
|
1565
1656
|
var manifest = JSON.parse(manifestRaw);
|
|
1566
1657
|
var deps = (_manifest$dependencie = manifest.dependencies) !== null && _manifest$dependencie !== void 0 ? _manifest$dependencie : {};
|
|
1567
|
-
|
|
1568
|
-
|
|
1658
|
+
var core = deps["@valbuild/core"];
|
|
1659
|
+
if (core && !deps["@valbuild/ui"]) {
|
|
1660
|
+
var _options$studioVersio;
|
|
1661
|
+
deps["@valbuild/ui"] = (_options$studioVersio = options.studioVersion) !== null && _options$studioVersio !== void 0 ? _options$studioVersio : core;
|
|
1569
1662
|
manifest.dependencies = deps;
|
|
1570
1663
|
out["package.json"] = "".concat(JSON.stringify(manifest, null, 2), "\n");
|
|
1571
1664
|
changes.push({
|
|
1572
1665
|
what: "@valbuild/ui declared as a dependency",
|
|
1573
1666
|
why: "it carries the Studio bundle and was only a transitive dependency; the vendor " + "layer is built from what the project declares"
|
|
1574
1667
|
});
|
|
1668
|
+
if (!options.studioVersion) {
|
|
1669
|
+
warnings.push("@valbuild/ui was declared at @valbuild/core's version (".concat(core, "), because the ") + "installed one could not be read. Declare @valbuild/ui in package.json at the " + "version your @valbuild/tanstack depends on to be sure it is the Studio you run.");
|
|
1670
|
+
}
|
|
1575
1671
|
}
|
|
1576
1672
|
} catch (_unused3) {
|
|
1577
1673
|
warnings.push("package.json could not be parsed, so @valbuild/ui was not declared.");
|
|
@@ -3761,6 +3857,8 @@ function _buildOnce() {
|
|
|
3761
3857
|
aliases,
|
|
3762
3858
|
vendor,
|
|
3763
3859
|
projectVendor,
|
|
3860
|
+
_yield$loadRolldown,
|
|
3861
|
+
build,
|
|
3764
3862
|
result,
|
|
3765
3863
|
chunks,
|
|
3766
3864
|
entry,
|
|
@@ -3794,7 +3892,12 @@ function _buildOnce() {
|
|
|
3794
3892
|
// it runs on the server, so server-only code stays and client-only code goes.
|
|
3795
3893
|
// Only the vendor layer differs.
|
|
3796
3894
|
_context2.n = 1;
|
|
3797
|
-
return
|
|
3895
|
+
return loadRolldown();
|
|
3896
|
+
case 1:
|
|
3897
|
+
_yield$loadRolldown = _context2.v;
|
|
3898
|
+
build = _yield$loadRolldown.build;
|
|
3899
|
+
_context2.n = 2;
|
|
3900
|
+
return build({
|
|
3798
3901
|
input: isRsc ? RSC_ENTRY_ID : projectPaths.ENTRY,
|
|
3799
3902
|
// Required in the browser. rolldown computes `cwd: inputOptions.cwd ??
|
|
3800
3903
|
// process.cwd()` unguarded, so omitting this throws "process is not
|
|
@@ -3830,7 +3933,7 @@ function _buildOnce() {
|
|
|
3830
3933
|
},
|
|
3831
3934
|
write: false
|
|
3832
3935
|
});
|
|
3833
|
-
case
|
|
3936
|
+
case 2:
|
|
3834
3937
|
result = _context2.v;
|
|
3835
3938
|
// A type predicate rather than `(chunk: any)`, which is how this read until
|
|
3836
3939
|
// the package moved into a repository that type-checks it: an `any`
|
|
@@ -3845,13 +3948,13 @@ function _buildOnce() {
|
|
|
3845
3948
|
return chunk.fileName === ENTRY_CHUNK;
|
|
3846
3949
|
});
|
|
3847
3950
|
if (entry) {
|
|
3848
|
-
_context2.n =
|
|
3951
|
+
_context2.n = 3;
|
|
3849
3952
|
break;
|
|
3850
3953
|
}
|
|
3851
3954
|
throw new Error("The build produced no ".concat(ENTRY_CHUNK, ". Chunks: ").concat(chunks.map(function (c) {
|
|
3852
3955
|
return c.fileName;
|
|
3853
3956
|
}).join(", "), "."));
|
|
3854
|
-
case
|
|
3957
|
+
case 3:
|
|
3855
3958
|
// Chunk-to-chunk imports come out relative (`./c-abc.js`), which is exactly
|
|
3856
3959
|
// what both sides need and why neither gets a base path here: relative to
|
|
3857
3960
|
// `app.js` in the module map, relative to `/_app/app.js` as a URL.
|
|
@@ -4525,7 +4628,7 @@ function bundleValModules(_x) {
|
|
|
4525
4628
|
function _bundleValModules() {
|
|
4526
4629
|
_bundleValModules = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee(input) {
|
|
4527
4630
|
var _input$entry;
|
|
4528
|
-
var files, target, origin, entry, warnings, aliases, base, project, resolveProjectPath, result, chunks, _t;
|
|
4631
|
+
var files, target, origin, entry, warnings, aliases, base, project, resolveProjectPath, _yield$loadRolldown, build, result, chunks, _t;
|
|
4529
4632
|
return regeneratorValues._regenerator().w(function (_context) {
|
|
4530
4633
|
while (1) switch (_context.p = _context.n) {
|
|
4531
4634
|
case 0:
|
|
@@ -4548,9 +4651,14 @@ function _bundleValModules() {
|
|
|
4548
4651
|
resolveProjectPath = function resolveProjectPath(path) {
|
|
4549
4652
|
return resolveInFiles(path, files);
|
|
4550
4653
|
};
|
|
4551
|
-
_context.
|
|
4552
|
-
|
|
4553
|
-
|
|
4654
|
+
_context.n = 2;
|
|
4655
|
+
return loadRolldown();
|
|
4656
|
+
case 2:
|
|
4657
|
+
_yield$loadRolldown = _context.v;
|
|
4658
|
+
build = _yield$loadRolldown.build;
|
|
4659
|
+
_context.p = 3;
|
|
4660
|
+
_context.n = 4;
|
|
4661
|
+
return build({
|
|
4554
4662
|
input: entry,
|
|
4555
4663
|
// See `buildOnce`: required in the browser, inert here.
|
|
4556
4664
|
cwd: "/",
|
|
@@ -4622,31 +4730,31 @@ function _bundleValModules() {
|
|
|
4622
4730
|
},
|
|
4623
4731
|
write: false
|
|
4624
4732
|
});
|
|
4625
|
-
case
|
|
4733
|
+
case 4:
|
|
4626
4734
|
result = _context.v;
|
|
4627
|
-
_context.n =
|
|
4735
|
+
_context.n = 6;
|
|
4628
4736
|
break;
|
|
4629
|
-
case
|
|
4630
|
-
_context.p =
|
|
4737
|
+
case 5:
|
|
4738
|
+
_context.p = 5;
|
|
4631
4739
|
_t = _context.v;
|
|
4632
4740
|
throw new Error(["The Val modules could not be bundled."].concat(warnings, [_t instanceof Error ? _t.message : String(_t)]).join("\n"), {
|
|
4633
4741
|
cause: _t
|
|
4634
4742
|
});
|
|
4635
|
-
case
|
|
4743
|
+
case 6:
|
|
4636
4744
|
chunks = result.output.filter(function (output) {
|
|
4637
4745
|
return output.type === "chunk";
|
|
4638
4746
|
});
|
|
4639
4747
|
if (!(chunks.length !== 1)) {
|
|
4640
|
-
_context.n =
|
|
4748
|
+
_context.n = 7;
|
|
4641
4749
|
break;
|
|
4642
4750
|
}
|
|
4643
4751
|
throw new Error("Bundling the Val modules made ".concat(chunks.length, " chunks rather than one."));
|
|
4644
|
-
case
|
|
4752
|
+
case 7:
|
|
4645
4753
|
return _context.a(2, {
|
|
4646
4754
|
code: chunks[0].code
|
|
4647
4755
|
});
|
|
4648
4756
|
}
|
|
4649
|
-
}, _callee, null, [[
|
|
4757
|
+
}, _callee, null, [[3, 5]]);
|
|
4650
4758
|
}));
|
|
4651
4759
|
return _bundleValModules.apply(this, arguments);
|
|
4652
4760
|
}
|
|
@@ -4674,6 +4782,7 @@ exports.fetchBuildTarget = fetchBuildTarget;
|
|
|
4674
4782
|
exports.fetchBuildTargetRev = fetchBuildTargetRev;
|
|
4675
4783
|
exports.isValProject = isValProject;
|
|
4676
4784
|
exports.isWired = isWired;
|
|
4785
|
+
exports.loadRolldown = loadRolldown;
|
|
4677
4786
|
exports.publishArtifacts = publishArtifacts;
|
|
4678
4787
|
exports.publishPayload = publishPayload;
|
|
4679
4788
|
exports.rebakeGit = rebakeGit;
|
|
@@ -4681,6 +4790,7 @@ exports.resolveInFiles = resolveInFiles;
|
|
|
4681
4790
|
exports.scanCandidates = scanCandidates;
|
|
4682
4791
|
exports.treeSha = treeSha;
|
|
4683
4792
|
exports.treeShaOfText = treeShaOfText;
|
|
4793
|
+
exports.useRolldown = useRolldown;
|
|
4684
4794
|
exports.usesTailwind = usesTailwind;
|
|
4685
4795
|
exports.wireUp = wireUp;
|
|
4686
4796
|
exports.wiredValServer = wiredValServer;
|
|
@@ -3,12 +3,85 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var regeneratorValues = require('./regeneratorValues-eb61e1b2.cjs.prod.js');
|
|
6
|
-
var browser = require('@rolldown/browser');
|
|
7
6
|
var projectPaths = require('./projectPaths-9cbecebf.cjs.prod.js');
|
|
8
|
-
var parseAst = require('@rolldown/browser/parseAst');
|
|
9
7
|
var tailwindcss = require('tailwindcss');
|
|
10
8
|
var artifactKeys = require('./artifactKeys-700b9044.cjs.prod.js');
|
|
11
9
|
|
|
10
|
+
function _interopNamespace(e) {
|
|
11
|
+
if (e && e.__esModule) return e;
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n["default"] = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The bundler the build runs on, chosen by where it runs.
|
|
30
|
+
*
|
|
31
|
+
* The build is the same code in a browser tab and in Node, and rolldown comes
|
|
32
|
+
* in two builds with one API: `@rolldown/browser`, compiled to WebAssembly,
|
|
33
|
+
* and `rolldown`, the native one. A tab can only have the first. Node should
|
|
34
|
+
* not load it: it reaches its WebAssembly through `@napi-rs/wasm-runtime`, a
|
|
35
|
+
* dependency whose version the SITE'S lockfile picks, and rolldown's own
|
|
36
|
+
* ranges have let a release in that does not load (2026-10-26, below). The
|
|
37
|
+
* native one has no such glue. So nothing in this package imports either
|
|
38
|
+
* statically: Node is handed the native one (`useRolldown`, with
|
|
39
|
+
* `nativeRolldown` from `@valbuild/tanstack-build/node`), and anything not
|
|
40
|
+
* handed one gets the browser build, imported on first use.
|
|
41
|
+
*
|
|
42
|
+
* Why not just the browser build in both, as it was until 2026-10-26:
|
|
43
|
+
* `@rolldown/browser` 1.2.15 pins `@emnapi/core` 2.0.0-alpha.5 and asks for
|
|
44
|
+
* `@napi-rs/wasm-runtime` `~1.2.5`, and wasm-runtime 1.2.6 (2026-10-25) only
|
|
45
|
+
* works with `@emnapi/core` 1.x or 2.0.0-beta.2 -- loading it throws
|
|
46
|
+
* "Cannot set properties of undefined (setting 'initWorker')". Any site whose
|
|
47
|
+
* lockfile was resolved after that release (an upgrade, a `pnpm update`)
|
|
48
|
+
* could no longer `val publish`. The Studio's tab and Val Build's upgrade page
|
|
49
|
+
* are not exposed to it: they bundle the browser build from their own
|
|
50
|
+
* lockfiles, where the builder tab's end-to-end specs load it before a
|
|
51
|
+
* release.
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
var chosen = null;
|
|
55
|
+
|
|
56
|
+
/** Build on `rolldown` from now on. Node calls it with `nativeRolldown`. */
|
|
57
|
+
function useRolldown(rolldown) {
|
|
58
|
+
chosen = Promise.resolve(rolldown);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The bundler, loading the browser build if nobody chose one. Called early by
|
|
63
|
+
* a tab that wants the WebAssembly compiled before the first build needs it.
|
|
64
|
+
*/
|
|
65
|
+
function loadRolldown() {
|
|
66
|
+
if (chosen === null) {
|
|
67
|
+
var loading = Promise.all([Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@rolldown/browser')); }), Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@rolldown/browser/parseAst')); })]).then(function (_ref) {
|
|
68
|
+
var _ref2 = regeneratorValues._slicedToArray(_ref, 2),
|
|
69
|
+
bundler = _ref2[0],
|
|
70
|
+
parser = _ref2[1];
|
|
71
|
+
return {
|
|
72
|
+
build: bundler.build,
|
|
73
|
+
parseAstAsync: parser.parseAstAsync
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
// A load that failed is tried again by the next caller, not kept.
|
|
77
|
+
loading["catch"](function () {
|
|
78
|
+
if (chosen === loading) chosen = null;
|
|
79
|
+
});
|
|
80
|
+
chosen = loading;
|
|
81
|
+
}
|
|
82
|
+
return chosen;
|
|
83
|
+
}
|
|
84
|
+
|
|
12
85
|
// A minimal posix path resolver. The builder runs in the browser, so node:path
|
|
13
86
|
// is unavailable, and pulling a polyfill in for two functions is not worth it.
|
|
14
87
|
|
|
@@ -63,14 +136,20 @@ function parse(_x, _x2) {
|
|
|
63
136
|
/** Depth-first walk carrying a parent stack, nearest parent last. */
|
|
64
137
|
function _parse() {
|
|
65
138
|
_parse = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee(path, code) {
|
|
139
|
+
var _yield$loadRolldown, parseAstAsync;
|
|
66
140
|
return regeneratorValues._regenerator().w(function (_context) {
|
|
67
141
|
while (1) switch (_context.n) {
|
|
68
142
|
case 0:
|
|
69
143
|
_context.n = 1;
|
|
70
|
-
return
|
|
144
|
+
return loadRolldown();
|
|
145
|
+
case 1:
|
|
146
|
+
_yield$loadRolldown = _context.v;
|
|
147
|
+
parseAstAsync = _yield$loadRolldown.parseAstAsync;
|
|
148
|
+
_context.n = 2;
|
|
149
|
+
return parseAstAsync(code, {
|
|
71
150
|
lang: langOf(path)
|
|
72
151
|
}, path);
|
|
73
|
-
case
|
|
152
|
+
case 2:
|
|
74
153
|
return _context.a(2, _context.v);
|
|
75
154
|
}
|
|
76
155
|
}, _callee);
|
|
@@ -620,16 +699,21 @@ function importsOf(_x, _x2) {
|
|
|
620
699
|
}
|
|
621
700
|
function _importsOf() {
|
|
622
701
|
_importsOf = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee(path, code) {
|
|
623
|
-
var lang, ast, sources, _iterator, _step, statement, source;
|
|
702
|
+
var lang, _yield$loadRolldown, parseAstAsync, ast, sources, _iterator, _step, statement, source;
|
|
624
703
|
return regeneratorValues._regenerator().w(function (_context) {
|
|
625
704
|
while (1) switch (_context.n) {
|
|
626
705
|
case 0:
|
|
627
706
|
lang = path.endsWith(".tsx") || path.endsWith(".jsx") ? "tsx" : "ts";
|
|
628
707
|
_context.n = 1;
|
|
629
|
-
return
|
|
708
|
+
return loadRolldown();
|
|
709
|
+
case 1:
|
|
710
|
+
_yield$loadRolldown = _context.v;
|
|
711
|
+
parseAstAsync = _yield$loadRolldown.parseAstAsync;
|
|
712
|
+
_context.n = 2;
|
|
713
|
+
return parseAstAsync(code, {
|
|
630
714
|
lang: lang
|
|
631
715
|
}, path);
|
|
632
|
-
case
|
|
716
|
+
case 2:
|
|
633
717
|
ast = _context.v;
|
|
634
718
|
sources = [];
|
|
635
719
|
_iterator = regeneratorValues._createForOfIteratorHelper(ast.body);
|
|
@@ -1101,7 +1185,7 @@ var packageJson = {
|
|
|
1101
1185
|
url: "git+https://github.com/valbuild/val.git"
|
|
1102
1186
|
},
|
|
1103
1187
|
license: "MIT",
|
|
1104
|
-
version: "0.
|
|
1188
|
+
version: "0.150.1",
|
|
1105
1189
|
sideEffects: false,
|
|
1106
1190
|
main: "dist/valbuild-tanstack-build.cjs.js",
|
|
1107
1191
|
module: "dist/valbuild-tanstack-build.esm.js",
|
|
@@ -1166,7 +1250,7 @@ var packageJson = {
|
|
|
1166
1250
|
"@types/jest": "^30.0.0",
|
|
1167
1251
|
"@types/node": "^26.4.0",
|
|
1168
1252
|
"@types/react": "^19.2.18",
|
|
1169
|
-
rolldown: "
|
|
1253
|
+
rolldown: "1.2.9",
|
|
1170
1254
|
tsx: "^4.23.12",
|
|
1171
1255
|
typescript: "^6.0.3"
|
|
1172
1256
|
},
|
|
@@ -1557,6 +1641,13 @@ function wireUp(files, options) {
|
|
|
1557
1641
|
* a TRANSITIVE dependency, and the vendor layer is built from what a project
|
|
1558
1642
|
* DECLARES intersected with what it imports. Undeclared, the Studio loads its
|
|
1559
1643
|
* shell and then 404s on its own bundle.
|
|
1644
|
+
*
|
|
1645
|
+
* At the version the project already runs (`studioVersion`), not at
|
|
1646
|
+
* `@valbuild/core`'s: the two stopped moving together, and a site declaring
|
|
1647
|
+
* an older ui than its `@valbuild/tanstack` installs a second, older Studio
|
|
1648
|
+
* the next time anything installs from this `package.json`. A rewrite also
|
|
1649
|
+
* means the site's `package.json` is no longer its template's, so the
|
|
1650
|
+
* templates declare it themselves and this leaves them alone.
|
|
1560
1651
|
*/
|
|
1561
1652
|
var manifestRaw = files["package.json"];
|
|
1562
1653
|
if (manifestRaw) {
|
|
@@ -1564,14 +1655,19 @@ function wireUp(files, options) {
|
|
|
1564
1655
|
var _manifest$dependencie;
|
|
1565
1656
|
var manifest = JSON.parse(manifestRaw);
|
|
1566
1657
|
var deps = (_manifest$dependencie = manifest.dependencies) !== null && _manifest$dependencie !== void 0 ? _manifest$dependencie : {};
|
|
1567
|
-
|
|
1568
|
-
|
|
1658
|
+
var core = deps["@valbuild/core"];
|
|
1659
|
+
if (core && !deps["@valbuild/ui"]) {
|
|
1660
|
+
var _options$studioVersio;
|
|
1661
|
+
deps["@valbuild/ui"] = (_options$studioVersio = options.studioVersion) !== null && _options$studioVersio !== void 0 ? _options$studioVersio : core;
|
|
1569
1662
|
manifest.dependencies = deps;
|
|
1570
1663
|
out["package.json"] = "".concat(JSON.stringify(manifest, null, 2), "\n");
|
|
1571
1664
|
changes.push({
|
|
1572
1665
|
what: "@valbuild/ui declared as a dependency",
|
|
1573
1666
|
why: "it carries the Studio bundle and was only a transitive dependency; the vendor " + "layer is built from what the project declares"
|
|
1574
1667
|
});
|
|
1668
|
+
if (!options.studioVersion) {
|
|
1669
|
+
warnings.push("@valbuild/ui was declared at @valbuild/core's version (".concat(core, "), because the ") + "installed one could not be read. Declare @valbuild/ui in package.json at the " + "version your @valbuild/tanstack depends on to be sure it is the Studio you run.");
|
|
1670
|
+
}
|
|
1575
1671
|
}
|
|
1576
1672
|
} catch (_unused3) {
|
|
1577
1673
|
warnings.push("package.json could not be parsed, so @valbuild/ui was not declared.");
|
|
@@ -3761,6 +3857,8 @@ function _buildOnce() {
|
|
|
3761
3857
|
aliases,
|
|
3762
3858
|
vendor,
|
|
3763
3859
|
projectVendor,
|
|
3860
|
+
_yield$loadRolldown,
|
|
3861
|
+
build,
|
|
3764
3862
|
result,
|
|
3765
3863
|
chunks,
|
|
3766
3864
|
entry,
|
|
@@ -3794,7 +3892,12 @@ function _buildOnce() {
|
|
|
3794
3892
|
// it runs on the server, so server-only code stays and client-only code goes.
|
|
3795
3893
|
// Only the vendor layer differs.
|
|
3796
3894
|
_context2.n = 1;
|
|
3797
|
-
return
|
|
3895
|
+
return loadRolldown();
|
|
3896
|
+
case 1:
|
|
3897
|
+
_yield$loadRolldown = _context2.v;
|
|
3898
|
+
build = _yield$loadRolldown.build;
|
|
3899
|
+
_context2.n = 2;
|
|
3900
|
+
return build({
|
|
3798
3901
|
input: isRsc ? RSC_ENTRY_ID : projectPaths.ENTRY,
|
|
3799
3902
|
// Required in the browser. rolldown computes `cwd: inputOptions.cwd ??
|
|
3800
3903
|
// process.cwd()` unguarded, so omitting this throws "process is not
|
|
@@ -3830,7 +3933,7 @@ function _buildOnce() {
|
|
|
3830
3933
|
},
|
|
3831
3934
|
write: false
|
|
3832
3935
|
});
|
|
3833
|
-
case
|
|
3936
|
+
case 2:
|
|
3834
3937
|
result = _context2.v;
|
|
3835
3938
|
// A type predicate rather than `(chunk: any)`, which is how this read until
|
|
3836
3939
|
// the package moved into a repository that type-checks it: an `any`
|
|
@@ -3845,13 +3948,13 @@ function _buildOnce() {
|
|
|
3845
3948
|
return chunk.fileName === ENTRY_CHUNK;
|
|
3846
3949
|
});
|
|
3847
3950
|
if (entry) {
|
|
3848
|
-
_context2.n =
|
|
3951
|
+
_context2.n = 3;
|
|
3849
3952
|
break;
|
|
3850
3953
|
}
|
|
3851
3954
|
throw new Error("The build produced no ".concat(ENTRY_CHUNK, ". Chunks: ").concat(chunks.map(function (c) {
|
|
3852
3955
|
return c.fileName;
|
|
3853
3956
|
}).join(", "), "."));
|
|
3854
|
-
case
|
|
3957
|
+
case 3:
|
|
3855
3958
|
// Chunk-to-chunk imports come out relative (`./c-abc.js`), which is exactly
|
|
3856
3959
|
// what both sides need and why neither gets a base path here: relative to
|
|
3857
3960
|
// `app.js` in the module map, relative to `/_app/app.js` as a URL.
|
|
@@ -4525,7 +4628,7 @@ function bundleValModules(_x) {
|
|
|
4525
4628
|
function _bundleValModules() {
|
|
4526
4629
|
_bundleValModules = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee(input) {
|
|
4527
4630
|
var _input$entry;
|
|
4528
|
-
var files, target, origin, entry, warnings, aliases, base, project, resolveProjectPath, result, chunks, _t;
|
|
4631
|
+
var files, target, origin, entry, warnings, aliases, base, project, resolveProjectPath, _yield$loadRolldown, build, result, chunks, _t;
|
|
4529
4632
|
return regeneratorValues._regenerator().w(function (_context) {
|
|
4530
4633
|
while (1) switch (_context.p = _context.n) {
|
|
4531
4634
|
case 0:
|
|
@@ -4548,9 +4651,14 @@ function _bundleValModules() {
|
|
|
4548
4651
|
resolveProjectPath = function resolveProjectPath(path) {
|
|
4549
4652
|
return resolveInFiles(path, files);
|
|
4550
4653
|
};
|
|
4551
|
-
_context.
|
|
4552
|
-
|
|
4553
|
-
|
|
4654
|
+
_context.n = 2;
|
|
4655
|
+
return loadRolldown();
|
|
4656
|
+
case 2:
|
|
4657
|
+
_yield$loadRolldown = _context.v;
|
|
4658
|
+
build = _yield$loadRolldown.build;
|
|
4659
|
+
_context.p = 3;
|
|
4660
|
+
_context.n = 4;
|
|
4661
|
+
return build({
|
|
4554
4662
|
input: entry,
|
|
4555
4663
|
// See `buildOnce`: required in the browser, inert here.
|
|
4556
4664
|
cwd: "/",
|
|
@@ -4622,31 +4730,31 @@ function _bundleValModules() {
|
|
|
4622
4730
|
},
|
|
4623
4731
|
write: false
|
|
4624
4732
|
});
|
|
4625
|
-
case
|
|
4733
|
+
case 4:
|
|
4626
4734
|
result = _context.v;
|
|
4627
|
-
_context.n =
|
|
4735
|
+
_context.n = 6;
|
|
4628
4736
|
break;
|
|
4629
|
-
case
|
|
4630
|
-
_context.p =
|
|
4737
|
+
case 5:
|
|
4738
|
+
_context.p = 5;
|
|
4631
4739
|
_t = _context.v;
|
|
4632
4740
|
throw new Error(["The Val modules could not be bundled."].concat(warnings, [_t instanceof Error ? _t.message : String(_t)]).join("\n"), {
|
|
4633
4741
|
cause: _t
|
|
4634
4742
|
});
|
|
4635
|
-
case
|
|
4743
|
+
case 6:
|
|
4636
4744
|
chunks = result.output.filter(function (output) {
|
|
4637
4745
|
return output.type === "chunk";
|
|
4638
4746
|
});
|
|
4639
4747
|
if (!(chunks.length !== 1)) {
|
|
4640
|
-
_context.n =
|
|
4748
|
+
_context.n = 7;
|
|
4641
4749
|
break;
|
|
4642
4750
|
}
|
|
4643
4751
|
throw new Error("Bundling the Val modules made ".concat(chunks.length, " chunks rather than one."));
|
|
4644
|
-
case
|
|
4752
|
+
case 7:
|
|
4645
4753
|
return _context.a(2, {
|
|
4646
4754
|
code: chunks[0].code
|
|
4647
4755
|
});
|
|
4648
4756
|
}
|
|
4649
|
-
}, _callee, null, [[
|
|
4757
|
+
}, _callee, null, [[3, 5]]);
|
|
4650
4758
|
}));
|
|
4651
4759
|
return _bundleValModules.apply(this, arguments);
|
|
4652
4760
|
}
|
|
@@ -4674,6 +4782,7 @@ exports.fetchBuildTarget = fetchBuildTarget;
|
|
|
4674
4782
|
exports.fetchBuildTargetRev = fetchBuildTargetRev;
|
|
4675
4783
|
exports.isValProject = isValProject;
|
|
4676
4784
|
exports.isWired = isWired;
|
|
4785
|
+
exports.loadRolldown = loadRolldown;
|
|
4677
4786
|
exports.publishArtifacts = publishArtifacts;
|
|
4678
4787
|
exports.publishPayload = publishPayload;
|
|
4679
4788
|
exports.rebakeGit = rebakeGit;
|
|
@@ -4681,6 +4790,7 @@ exports.resolveInFiles = resolveInFiles;
|
|
|
4681
4790
|
exports.scanCandidates = scanCandidates;
|
|
4682
4791
|
exports.treeSha = treeSha;
|
|
4683
4792
|
exports.treeShaOfText = treeShaOfText;
|
|
4793
|
+
exports.useRolldown = useRolldown;
|
|
4684
4794
|
exports.usesTailwind = usesTailwind;
|
|
4685
4795
|
exports.wireUp = wireUp;
|
|
4686
4796
|
exports.wiredValServer = wiredValServer;
|
|
@@ -1,13 +1,68 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
export { I as INLINE_LIMIT, k as base64Bytes, j as isAsset } from './regeneratorValues-
|
|
3
|
-
import { build } from '@rolldown/browser';
|
|
1
|
+
import { _ as _slicedToArray, a as _createForOfIteratorHelper, b as _asyncToGenerator, c as _regenerator, d as _toConsumableArray, s as sha256Hex, e as _typeof, f as _objectSpread2, g as _defineProperty, h as _regeneratorValues, r as resolveAsset, i as assetModule, j as isAsset } from './regeneratorValues-a8bd356a.esm.js';
|
|
2
|
+
export { I as INLINE_LIMIT, k as base64Bytes, j as isAsset } from './regeneratorValues-a8bd356a.esm.js';
|
|
4
3
|
import { T as TREE, E as ENTRY } from './projectPaths-5e4defea.esm.js';
|
|
5
4
|
export { E as ENTRY, R as ROUTES_DIR, T as TREE } from './projectPaths-5e4defea.esm.js';
|
|
6
|
-
import { parseAstAsync } from '@rolldown/browser/parseAst';
|
|
7
5
|
import { compile } from 'tailwindcss';
|
|
8
6
|
import { A as ARTIFACT_KEYS, a as ARTIFACT_PREFIXES } from './artifactKeys-3a40f3a0.esm.js';
|
|
9
7
|
export { A as ARTIFACT_KEYS, a as ARTIFACT_PREFIXES } from './artifactKeys-3a40f3a0.esm.js';
|
|
10
8
|
|
|
9
|
+
/**
|
|
10
|
+
* The bundler the build runs on, chosen by where it runs.
|
|
11
|
+
*
|
|
12
|
+
* The build is the same code in a browser tab and in Node, and rolldown comes
|
|
13
|
+
* in two builds with one API: `@rolldown/browser`, compiled to WebAssembly,
|
|
14
|
+
* and `rolldown`, the native one. A tab can only have the first. Node should
|
|
15
|
+
* not load it: it reaches its WebAssembly through `@napi-rs/wasm-runtime`, a
|
|
16
|
+
* dependency whose version the SITE'S lockfile picks, and rolldown's own
|
|
17
|
+
* ranges have let a release in that does not load (2026-10-26, below). The
|
|
18
|
+
* native one has no such glue. So nothing in this package imports either
|
|
19
|
+
* statically: Node is handed the native one (`useRolldown`, with
|
|
20
|
+
* `nativeRolldown` from `@valbuild/tanstack-build/node`), and anything not
|
|
21
|
+
* handed one gets the browser build, imported on first use.
|
|
22
|
+
*
|
|
23
|
+
* Why not just the browser build in both, as it was until 2026-10-26:
|
|
24
|
+
* `@rolldown/browser` 1.2.15 pins `@emnapi/core` 2.0.0-alpha.5 and asks for
|
|
25
|
+
* `@napi-rs/wasm-runtime` `~1.2.5`, and wasm-runtime 1.2.6 (2026-10-25) only
|
|
26
|
+
* works with `@emnapi/core` 1.x or 2.0.0-beta.2 -- loading it throws
|
|
27
|
+
* "Cannot set properties of undefined (setting 'initWorker')". Any site whose
|
|
28
|
+
* lockfile was resolved after that release (an upgrade, a `pnpm update`)
|
|
29
|
+
* could no longer `val publish`. The Studio's tab and Val Build's upgrade page
|
|
30
|
+
* are not exposed to it: they bundle the browser build from their own
|
|
31
|
+
* lockfiles, where the builder tab's end-to-end specs load it before a
|
|
32
|
+
* release.
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
var chosen = null;
|
|
36
|
+
|
|
37
|
+
/** Build on `rolldown` from now on. Node calls it with `nativeRolldown`. */
|
|
38
|
+
function useRolldown(rolldown) {
|
|
39
|
+
chosen = Promise.resolve(rolldown);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The bundler, loading the browser build if nobody chose one. Called early by
|
|
44
|
+
* a tab that wants the WebAssembly compiled before the first build needs it.
|
|
45
|
+
*/
|
|
46
|
+
function loadRolldown() {
|
|
47
|
+
if (chosen === null) {
|
|
48
|
+
var loading = Promise.all([import('@rolldown/browser'), import('@rolldown/browser/parseAst')]).then(function (_ref) {
|
|
49
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
50
|
+
bundler = _ref2[0],
|
|
51
|
+
parser = _ref2[1];
|
|
52
|
+
return {
|
|
53
|
+
build: bundler.build,
|
|
54
|
+
parseAstAsync: parser.parseAstAsync
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
// A load that failed is tried again by the next caller, not kept.
|
|
58
|
+
loading["catch"](function () {
|
|
59
|
+
if (chosen === loading) chosen = null;
|
|
60
|
+
});
|
|
61
|
+
chosen = loading;
|
|
62
|
+
}
|
|
63
|
+
return chosen;
|
|
64
|
+
}
|
|
65
|
+
|
|
11
66
|
// A minimal posix path resolver. The builder runs in the browser, so node:path
|
|
12
67
|
// is unavailable, and pulling a polyfill in for two functions is not worth it.
|
|
13
68
|
|
|
@@ -62,14 +117,20 @@ function parse(_x, _x2) {
|
|
|
62
117
|
/** Depth-first walk carrying a parent stack, nearest parent last. */
|
|
63
118
|
function _parse() {
|
|
64
119
|
_parse = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(path, code) {
|
|
120
|
+
var _yield$loadRolldown, parseAstAsync;
|
|
65
121
|
return _regenerator().w(function (_context) {
|
|
66
122
|
while (1) switch (_context.n) {
|
|
67
123
|
case 0:
|
|
68
124
|
_context.n = 1;
|
|
125
|
+
return loadRolldown();
|
|
126
|
+
case 1:
|
|
127
|
+
_yield$loadRolldown = _context.v;
|
|
128
|
+
parseAstAsync = _yield$loadRolldown.parseAstAsync;
|
|
129
|
+
_context.n = 2;
|
|
69
130
|
return parseAstAsync(code, {
|
|
70
131
|
lang: langOf(path)
|
|
71
132
|
}, path);
|
|
72
|
-
case
|
|
133
|
+
case 2:
|
|
73
134
|
return _context.a(2, _context.v);
|
|
74
135
|
}
|
|
75
136
|
}, _callee);
|
|
@@ -619,16 +680,21 @@ function importsOf(_x, _x2) {
|
|
|
619
680
|
}
|
|
620
681
|
function _importsOf() {
|
|
621
682
|
_importsOf = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(path, code) {
|
|
622
|
-
var lang, ast, sources, _iterator, _step, statement, source;
|
|
683
|
+
var lang, _yield$loadRolldown, parseAstAsync, ast, sources, _iterator, _step, statement, source;
|
|
623
684
|
return _regenerator().w(function (_context) {
|
|
624
685
|
while (1) switch (_context.n) {
|
|
625
686
|
case 0:
|
|
626
687
|
lang = path.endsWith(".tsx") || path.endsWith(".jsx") ? "tsx" : "ts";
|
|
627
688
|
_context.n = 1;
|
|
689
|
+
return loadRolldown();
|
|
690
|
+
case 1:
|
|
691
|
+
_yield$loadRolldown = _context.v;
|
|
692
|
+
parseAstAsync = _yield$loadRolldown.parseAstAsync;
|
|
693
|
+
_context.n = 2;
|
|
628
694
|
return parseAstAsync(code, {
|
|
629
695
|
lang: lang
|
|
630
696
|
}, path);
|
|
631
|
-
case
|
|
697
|
+
case 2:
|
|
632
698
|
ast = _context.v;
|
|
633
699
|
sources = [];
|
|
634
700
|
_iterator = _createForOfIteratorHelper(ast.body);
|
|
@@ -1100,7 +1166,7 @@ var packageJson = {
|
|
|
1100
1166
|
url: "git+https://github.com/valbuild/val.git"
|
|
1101
1167
|
},
|
|
1102
1168
|
license: "MIT",
|
|
1103
|
-
version: "0.
|
|
1169
|
+
version: "0.150.1",
|
|
1104
1170
|
sideEffects: false,
|
|
1105
1171
|
main: "dist/valbuild-tanstack-build.cjs.js",
|
|
1106
1172
|
module: "dist/valbuild-tanstack-build.esm.js",
|
|
@@ -1165,7 +1231,7 @@ var packageJson = {
|
|
|
1165
1231
|
"@types/jest": "^30.0.0",
|
|
1166
1232
|
"@types/node": "^26.4.0",
|
|
1167
1233
|
"@types/react": "^19.2.18",
|
|
1168
|
-
rolldown: "
|
|
1234
|
+
rolldown: "1.2.9",
|
|
1169
1235
|
tsx: "^4.23.12",
|
|
1170
1236
|
typescript: "^6.0.3"
|
|
1171
1237
|
},
|
|
@@ -1556,6 +1622,13 @@ function wireUp(files, options) {
|
|
|
1556
1622
|
* a TRANSITIVE dependency, and the vendor layer is built from what a project
|
|
1557
1623
|
* DECLARES intersected with what it imports. Undeclared, the Studio loads its
|
|
1558
1624
|
* shell and then 404s on its own bundle.
|
|
1625
|
+
*
|
|
1626
|
+
* At the version the project already runs (`studioVersion`), not at
|
|
1627
|
+
* `@valbuild/core`'s: the two stopped moving together, and a site declaring
|
|
1628
|
+
* an older ui than its `@valbuild/tanstack` installs a second, older Studio
|
|
1629
|
+
* the next time anything installs from this `package.json`. A rewrite also
|
|
1630
|
+
* means the site's `package.json` is no longer its template's, so the
|
|
1631
|
+
* templates declare it themselves and this leaves them alone.
|
|
1559
1632
|
*/
|
|
1560
1633
|
var manifestRaw = files["package.json"];
|
|
1561
1634
|
if (manifestRaw) {
|
|
@@ -1563,14 +1636,19 @@ function wireUp(files, options) {
|
|
|
1563
1636
|
var _manifest$dependencie;
|
|
1564
1637
|
var manifest = JSON.parse(manifestRaw);
|
|
1565
1638
|
var deps = (_manifest$dependencie = manifest.dependencies) !== null && _manifest$dependencie !== void 0 ? _manifest$dependencie : {};
|
|
1566
|
-
|
|
1567
|
-
|
|
1639
|
+
var core = deps["@valbuild/core"];
|
|
1640
|
+
if (core && !deps["@valbuild/ui"]) {
|
|
1641
|
+
var _options$studioVersio;
|
|
1642
|
+
deps["@valbuild/ui"] = (_options$studioVersio = options.studioVersion) !== null && _options$studioVersio !== void 0 ? _options$studioVersio : core;
|
|
1568
1643
|
manifest.dependencies = deps;
|
|
1569
1644
|
out["package.json"] = "".concat(JSON.stringify(manifest, null, 2), "\n");
|
|
1570
1645
|
changes.push({
|
|
1571
1646
|
what: "@valbuild/ui declared as a dependency",
|
|
1572
1647
|
why: "it carries the Studio bundle and was only a transitive dependency; the vendor " + "layer is built from what the project declares"
|
|
1573
1648
|
});
|
|
1649
|
+
if (!options.studioVersion) {
|
|
1650
|
+
warnings.push("@valbuild/ui was declared at @valbuild/core's version (".concat(core, "), because the ") + "installed one could not be read. Declare @valbuild/ui in package.json at the " + "version your @valbuild/tanstack depends on to be sure it is the Studio you run.");
|
|
1651
|
+
}
|
|
1574
1652
|
}
|
|
1575
1653
|
} catch (_unused3) {
|
|
1576
1654
|
warnings.push("package.json could not be parsed, so @valbuild/ui was not declared.");
|
|
@@ -3760,6 +3838,8 @@ function _buildOnce() {
|
|
|
3760
3838
|
aliases,
|
|
3761
3839
|
vendor,
|
|
3762
3840
|
projectVendor,
|
|
3841
|
+
_yield$loadRolldown,
|
|
3842
|
+
build,
|
|
3763
3843
|
result,
|
|
3764
3844
|
chunks,
|
|
3765
3845
|
entry,
|
|
@@ -3793,6 +3873,11 @@ function _buildOnce() {
|
|
|
3793
3873
|
// it runs on the server, so server-only code stays and client-only code goes.
|
|
3794
3874
|
// Only the vendor layer differs.
|
|
3795
3875
|
_context2.n = 1;
|
|
3876
|
+
return loadRolldown();
|
|
3877
|
+
case 1:
|
|
3878
|
+
_yield$loadRolldown = _context2.v;
|
|
3879
|
+
build = _yield$loadRolldown.build;
|
|
3880
|
+
_context2.n = 2;
|
|
3796
3881
|
return build({
|
|
3797
3882
|
input: isRsc ? RSC_ENTRY_ID : ENTRY,
|
|
3798
3883
|
// Required in the browser. rolldown computes `cwd: inputOptions.cwd ??
|
|
@@ -3829,7 +3914,7 @@ function _buildOnce() {
|
|
|
3829
3914
|
},
|
|
3830
3915
|
write: false
|
|
3831
3916
|
});
|
|
3832
|
-
case
|
|
3917
|
+
case 2:
|
|
3833
3918
|
result = _context2.v;
|
|
3834
3919
|
// A type predicate rather than `(chunk: any)`, which is how this read until
|
|
3835
3920
|
// the package moved into a repository that type-checks it: an `any`
|
|
@@ -3844,13 +3929,13 @@ function _buildOnce() {
|
|
|
3844
3929
|
return chunk.fileName === ENTRY_CHUNK;
|
|
3845
3930
|
});
|
|
3846
3931
|
if (entry) {
|
|
3847
|
-
_context2.n =
|
|
3932
|
+
_context2.n = 3;
|
|
3848
3933
|
break;
|
|
3849
3934
|
}
|
|
3850
3935
|
throw new Error("The build produced no ".concat(ENTRY_CHUNK, ". Chunks: ").concat(chunks.map(function (c) {
|
|
3851
3936
|
return c.fileName;
|
|
3852
3937
|
}).join(", "), "."));
|
|
3853
|
-
case
|
|
3938
|
+
case 3:
|
|
3854
3939
|
// Chunk-to-chunk imports come out relative (`./c-abc.js`), which is exactly
|
|
3855
3940
|
// what both sides need and why neither gets a base path here: relative to
|
|
3856
3941
|
// `app.js` in the module map, relative to `/_app/app.js` as a URL.
|
|
@@ -4524,7 +4609,7 @@ function bundleValModules(_x) {
|
|
|
4524
4609
|
function _bundleValModules() {
|
|
4525
4610
|
_bundleValModules = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(input) {
|
|
4526
4611
|
var _input$entry;
|
|
4527
|
-
var files, target, origin, entry, warnings, aliases, base, project, resolveProjectPath, result, chunks, _t;
|
|
4612
|
+
var files, target, origin, entry, warnings, aliases, base, project, resolveProjectPath, _yield$loadRolldown, build, result, chunks, _t;
|
|
4528
4613
|
return _regenerator().w(function (_context) {
|
|
4529
4614
|
while (1) switch (_context.p = _context.n) {
|
|
4530
4615
|
case 0:
|
|
@@ -4547,8 +4632,13 @@ function _bundleValModules() {
|
|
|
4547
4632
|
resolveProjectPath = function resolveProjectPath(path) {
|
|
4548
4633
|
return resolveInFiles(path, files);
|
|
4549
4634
|
};
|
|
4550
|
-
_context.
|
|
4551
|
-
|
|
4635
|
+
_context.n = 2;
|
|
4636
|
+
return loadRolldown();
|
|
4637
|
+
case 2:
|
|
4638
|
+
_yield$loadRolldown = _context.v;
|
|
4639
|
+
build = _yield$loadRolldown.build;
|
|
4640
|
+
_context.p = 3;
|
|
4641
|
+
_context.n = 4;
|
|
4552
4642
|
return build({
|
|
4553
4643
|
input: entry,
|
|
4554
4644
|
// See `buildOnce`: required in the browser, inert here.
|
|
@@ -4621,33 +4711,33 @@ function _bundleValModules() {
|
|
|
4621
4711
|
},
|
|
4622
4712
|
write: false
|
|
4623
4713
|
});
|
|
4624
|
-
case
|
|
4714
|
+
case 4:
|
|
4625
4715
|
result = _context.v;
|
|
4626
|
-
_context.n =
|
|
4716
|
+
_context.n = 6;
|
|
4627
4717
|
break;
|
|
4628
|
-
case
|
|
4629
|
-
_context.p =
|
|
4718
|
+
case 5:
|
|
4719
|
+
_context.p = 5;
|
|
4630
4720
|
_t = _context.v;
|
|
4631
4721
|
throw new Error(["The Val modules could not be bundled."].concat(warnings, [_t instanceof Error ? _t.message : String(_t)]).join("\n"), {
|
|
4632
4722
|
cause: _t
|
|
4633
4723
|
});
|
|
4634
|
-
case
|
|
4724
|
+
case 6:
|
|
4635
4725
|
chunks = result.output.filter(function (output) {
|
|
4636
4726
|
return output.type === "chunk";
|
|
4637
4727
|
});
|
|
4638
4728
|
if (!(chunks.length !== 1)) {
|
|
4639
|
-
_context.n =
|
|
4729
|
+
_context.n = 7;
|
|
4640
4730
|
break;
|
|
4641
4731
|
}
|
|
4642
4732
|
throw new Error("Bundling the Val modules made ".concat(chunks.length, " chunks rather than one."));
|
|
4643
|
-
case
|
|
4733
|
+
case 7:
|
|
4644
4734
|
return _context.a(2, {
|
|
4645
4735
|
code: chunks[0].code
|
|
4646
4736
|
});
|
|
4647
4737
|
}
|
|
4648
|
-
}, _callee, null, [[
|
|
4738
|
+
}, _callee, null, [[3, 5]]);
|
|
4649
4739
|
}));
|
|
4650
4740
|
return _bundleValModules.apply(this, arguments);
|
|
4651
4741
|
}
|
|
4652
4742
|
|
|
4653
|
-
export { ENTRY_CHUNK, PROJECT_SOURCE, PUBLIC_PREFIX, VAL_SERVER_PATH, aliasMap, bakedGit, bakedJob, blobSha, buildInputId, buildUserApp, bundleValModules, fetchBuildTarget, fetchBuildTargetRev, isValProject, isWired, publishArtifacts, publishPayload, rebakeGit, resolveInFiles, scanCandidates, treeSha, treeShaOfText, usesTailwind, wireUp, wiredValServer, withoutBakedJob };
|
|
4743
|
+
export { ENTRY_CHUNK, PROJECT_SOURCE, PUBLIC_PREFIX, VAL_SERVER_PATH, aliasMap, bakedGit, bakedJob, blobSha, buildInputId, buildUserApp, bundleValModules, fetchBuildTarget, fetchBuildTargetRev, isValProject, isWired, loadRolldown, publishArtifacts, publishPayload, rebakeGit, resolveInFiles, scanCandidates, treeSha, treeShaOfText, useRolldown, usesTailwind, wireUp, wiredValServer, withoutBakedJob };
|
|
@@ -3208,6 +3208,15 @@ function _generateRouteTree() {
|
|
|
3208
3208
|
return _generateRouteTree.apply(this, arguments);
|
|
3209
3209
|
}
|
|
3210
3210
|
|
|
3211
|
+
/**
|
|
3212
|
+
* Native rolldown, for `useRolldown` in Node: the build without the
|
|
3213
|
+
* WebAssembly glue a site's lockfile can break (see `../rolldown.ts`).
|
|
3214
|
+
*/
|
|
3215
|
+
var nativeRolldown = {
|
|
3216
|
+
build: rolldown.build,
|
|
3217
|
+
parseAstAsync: parseAst.parseAstAsync
|
|
3218
|
+
};
|
|
3219
|
+
|
|
3211
3220
|
exports.BASE_PROVIDED = BASE_PROVIDED;
|
|
3212
3221
|
exports.NODE_SHIMS = NODE_SHIMS;
|
|
3213
3222
|
exports.PinSkewError = PinSkewError;
|
|
@@ -3223,6 +3232,7 @@ exports.cssSpecifiersOf = cssSpecifiersOf;
|
|
|
3223
3232
|
exports.generateRouteTree = generateRouteTree;
|
|
3224
3233
|
exports.isFileBased = isFileBased;
|
|
3225
3234
|
exports.layerDepsOf = layerDepsOf;
|
|
3235
|
+
exports.nativeRolldown = nativeRolldown;
|
|
3226
3236
|
exports.nodeShimSources = nodeShimSources;
|
|
3227
3237
|
exports.nodeShims = nodeShims;
|
|
3228
3238
|
exports.packageOf = packageOf;
|
|
@@ -3208,6 +3208,15 @@ function _generateRouteTree() {
|
|
|
3208
3208
|
return _generateRouteTree.apply(this, arguments);
|
|
3209
3209
|
}
|
|
3210
3210
|
|
|
3211
|
+
/**
|
|
3212
|
+
* Native rolldown, for `useRolldown` in Node: the build without the
|
|
3213
|
+
* WebAssembly glue a site's lockfile can break (see `../rolldown.ts`).
|
|
3214
|
+
*/
|
|
3215
|
+
var nativeRolldown = {
|
|
3216
|
+
build: rolldown.build,
|
|
3217
|
+
parseAstAsync: parseAst.parseAstAsync
|
|
3218
|
+
};
|
|
3219
|
+
|
|
3211
3220
|
exports.BASE_PROVIDED = BASE_PROVIDED;
|
|
3212
3221
|
exports.NODE_SHIMS = NODE_SHIMS;
|
|
3213
3222
|
exports.PinSkewError = PinSkewError;
|
|
@@ -3223,6 +3232,7 @@ exports.cssSpecifiersOf = cssSpecifiersOf;
|
|
|
3223
3232
|
exports.generateRouteTree = generateRouteTree;
|
|
3224
3233
|
exports.isFileBased = isFileBased;
|
|
3225
3234
|
exports.layerDepsOf = layerDepsOf;
|
|
3235
|
+
exports.nativeRolldown = nativeRolldown;
|
|
3226
3236
|
exports.nodeShimSources = nodeShimSources;
|
|
3227
3237
|
exports.nodeShims = nodeShims;
|
|
3228
3238
|
exports.packageOf = packageOf;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as _toPropertyKey,
|
|
1
|
+
import { l as _toPropertyKey, b as _asyncToGenerator, c as _regenerator, d as _toConsumableArray, f as _objectSpread2, a as _createForOfIteratorHelper, _ as _slicedToArray, A as ASSET_BASE, h as _regeneratorValues, g as _defineProperty, e as _typeof } from '../../dist/regeneratorValues-a8bd356a.esm.js';
|
|
2
2
|
import { build } from 'rolldown';
|
|
3
3
|
import { createHash } from 'node:crypto';
|
|
4
4
|
import { createRequire } from 'node:module';
|
|
@@ -3186,4 +3186,13 @@ function _generateRouteTree() {
|
|
|
3186
3186
|
return _generateRouteTree.apply(this, arguments);
|
|
3187
3187
|
}
|
|
3188
3188
|
|
|
3189
|
-
|
|
3189
|
+
/**
|
|
3190
|
+
* Native rolldown, for `useRolldown` in Node: the build without the
|
|
3191
|
+
* WebAssembly glue a site's lockfile can break (see `../rolldown.ts`).
|
|
3192
|
+
*/
|
|
3193
|
+
var nativeRolldown = {
|
|
3194
|
+
build: build,
|
|
3195
|
+
parseAstAsync: parseAstAsync
|
|
3196
|
+
};
|
|
3197
|
+
|
|
3198
|
+
export { BASE_PROVIDED, NODE_SHIMS, PinSkewError, REEXPORT, SHIM_PREFIX, auditableImports, auditableSpecifiers, buildVendorLayer, chunkNameFor, collectDependencyCss, cssModuleLoader, cssSpecifiersOf, generateRouteTree, isFileBased, layerDepsOf, nativeRolldown, nodeShimSources, nodeShims, packageOf, routeSplitter };
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "git+https://github.com/valbuild/val.git"
|
|
8
8
|
},
|
|
9
9
|
"license": "MIT",
|
|
10
|
-
"version": "0.
|
|
10
|
+
"version": "0.150.1",
|
|
11
11
|
"sideEffects": false,
|
|
12
12
|
"main": "dist/valbuild-tanstack-build.cjs.js",
|
|
13
13
|
"module": "dist/valbuild-tanstack-build.esm.js",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@types/jest": "^30.0.0",
|
|
67
67
|
"@types/node": "^26.4.0",
|
|
68
68
|
"@types/react": "^19.2.18",
|
|
69
|
-
"rolldown": "
|
|
69
|
+
"rolldown": "1.2.9",
|
|
70
70
|
"tsx": "^4.23.12",
|
|
71
71
|
"typescript": "^6.0.3"
|
|
72
72
|
},
|