Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fresh-tools-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@solidjs/start": patch
---

Migrate the built-in Vite configuration from the deprecated `rollupOptions` alias to `rolldownOptions`.
2 changes: 1 addition & 1 deletion apps/fixtures/css/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import virtualCSS from "./src/virtualCssPlugin";
export default defineConfig({
plugins: [virtualCSS(), solidStart(), nitro(), tailwindcss()],
build: {
rollupOptions: {
rolldownOptions: {
output: {
/**
* Creates a shared chunk with two components. Needed for the "SharedChunk" test!
Expand Down
2 changes: 1 addition & 1 deletion packages/start/src/config/app-root-alias.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ it("resolves ~ in stylesheets, which are resolved without user plugins", async (
logLevel: "silent",
root,
plugins: [appRootAlias(root, "./src")],
build: { write: false, rollupOptions: { input: join(root, "src/main.js") } },
build: { write: false, rolldownOptions: { input: join(root, "src/main.js") } },
})) as { output: { fileName: string; source?: unknown }[] };

const css = result.output.find(chunk => chunk.fileName.endsWith(".css"));
Expand Down
6 changes: 3 additions & 3 deletions packages/start/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export function solidStart(options?: SolidStartOptions): Array<PluginOption> {
appType: "custom",
build: {
assetsDir: "_build/assets",
rollupOptions: {
rolldownOptions: {
output: {
// Keeps route chunks named after their file rather than after
// the `?pick=...` id that addresses them. See toPickId.
Expand All @@ -295,7 +295,7 @@ export function solidStart(options?: SolidStartOptions): Array<PluginOption> {
write: true,
manifest: true,
outDir: "dist/client",
rollupOptions: {
rolldownOptions: {
input: clientInput,
treeshake: true,
preserveEntrySignatures: "exports-only",
Expand All @@ -309,7 +309,7 @@ export function solidStart(options?: SolidStartOptions): Array<PluginOption> {
write: true,
manifest: true,
copyPublicDir: false,
rollupOptions: {
rolldownOptions: {
input: handlers.server,
},
outDir: "dist/server",
Expand Down
Loading