Skip to content

Commit 37d4488

Browse files
authored
chore: migrate from rollupOptions to rolldownOptions (#2278)
1 parent 6581877 commit 37d4488

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

.changeset/fresh-tools-build.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/start": patch
3+
---
4+
5+
Migrate the built-in Vite configuration from the deprecated `rollupOptions` alias to `rolldownOptions`.

apps/fixtures/css/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import virtualCSS from "./src/virtualCssPlugin";
77
export default defineConfig({
88
plugins: [virtualCSS(), solidStart(), nitro(), tailwindcss()],
99
build: {
10-
rollupOptions: {
10+
rolldownOptions: {
1111
output: {
1212
/**
1313
* Creates a shared chunk with two components. Needed for the "SharedChunk" test!

packages/start/src/config/app-root-alias.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ it("resolves ~ in stylesheets, which are resolved without user plugins", async (
6969
logLevel: "silent",
7070
root,
7171
plugins: [appRootAlias(root, "./src")],
72-
build: { write: false, rollupOptions: { input: join(root, "src/main.js") } },
72+
build: { write: false, rolldownOptions: { input: join(root, "src/main.js") } },
7373
})) as { output: { fileName: string; source?: unknown }[] };
7474

7575
const css = result.output.find(chunk => chunk.fileName.endsWith(".css"));

packages/start/src/config/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ export function solidStart(options?: SolidStartOptions): Array<PluginOption> {
270270
appType: "custom",
271271
build: {
272272
assetsDir: "_build/assets",
273-
rollupOptions: {
273+
rolldownOptions: {
274274
output: {
275275
// Keeps route chunks named after their file rather than after
276276
// the `?pick=...` id that addresses them. See toPickId.
@@ -295,7 +295,7 @@ export function solidStart(options?: SolidStartOptions): Array<PluginOption> {
295295
write: true,
296296
manifest: true,
297297
outDir: "dist/client",
298-
rollupOptions: {
298+
rolldownOptions: {
299299
input: clientInput,
300300
treeshake: true,
301301
preserveEntrySignatures: "exports-only",
@@ -309,7 +309,7 @@ export function solidStart(options?: SolidStartOptions): Array<PluginOption> {
309309
write: true,
310310
manifest: true,
311311
copyPublicDir: false,
312-
rollupOptions: {
312+
rolldownOptions: {
313313
input: handlers.server,
314314
},
315315
outDir: "dist/server",

0 commit comments

Comments
 (0)