Skip to content

Commit d13f764

Browse files
Move to Vite 8 / Rolldown (#348)
* bump to vite 8 * lockfile * vite 8 support * ci: apply automated fixes * use rolldownconfig * go to 0.5.0 --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent c759665 commit d13f764

File tree

73 files changed

+727
-406
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+727
-406
lines changed

.changeset/vite-8-support.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/vite-config': minor
3+
---
4+
5+
Bump to Vite 8 with Rolldown. Drops Vite 6/7 support. Switches to `rolldownOptions` and native `resolve.tsconfigPaths`.
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
"use strict";
21
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3-
const queryCore = require("@tanstack/query-core");
4-
const useClient = require("./use-client.cjs");
5-
const nested = require("./nested/nested.cjs");
6-
exports.Component = useClient.Component;
7-
exports.test = nested.test;
8-
Object.keys(queryCore).forEach((k) => {
9-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
10-
enumerable: true,
11-
get: () => queryCore[k]
12-
});
2+
const require_use_client = require("./use-client.cjs");
3+
const require_nested = require("./nested/nested.cjs");
4+
exports.Component = require_use_client.Component;
5+
exports.test = require_nested.test;
6+
var _tanstack_query_core = require("@tanstack/query-core");
7+
Object.keys(_tanstack_query_core).forEach(function(k) {
8+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9+
enumerable: true,
10+
get: function() {
11+
return _tanstack_query_core[k];
12+
}
13+
});
1314
});
14-
//# sourceMappingURL=index.cjs.map

integrations/react/snap/cjs/index.cjs.map

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
"use strict";
2-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3-
const test = "Hello world!";
1+
//#region src/nested/nested.ts
2+
var test = "Hello world!";
3+
//#endregion
44
exports.test = test;
5-
//# sourceMappingURL=nested.cjs.map
5+
6+
//# sourceMappingURL=nested.cjs.map

integrations/react/snap/cjs/nested/nested.cjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
"use client";
2-
"use strict";
3-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4-
const jsxRuntime = require("react/jsx-runtime");
5-
const Component = () => {
6-
return /* @__PURE__ */ jsxRuntime.jsx("div", { children: "Hello world!" });
2+
"use client";
3+
let react_jsx_runtime = require("react/jsx-runtime");
4+
//#region src/use-client.tsx
5+
var Component = () => {
6+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: "Hello world!" });
77
};
8+
//#endregion
89
exports.Component = Component;
9-
//# sourceMappingURL=use-client.cjs.map
10+
11+
//# sourceMappingURL=use-client.cjs.map

integrations/react/snap/cjs/use-client.cjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
export * from "@tanstack/query-core";
21
import { Component } from "./use-client.js";
32
import { test } from "./nested/nested.js";
4-
export {
5-
Component,
6-
test
7-
};
8-
//# sourceMappingURL=index.js.map
3+
export * from "@tanstack/query-core";
4+
export { Component, test };

integrations/react/snap/esm/index.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

integrations/react/snap/esm/nested/nested.js

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)