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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"format": "prettier --write --ignore-path .gitignore ."
},
"peerDependencies": {
"vite": "5.x || 6.x || 7.x"
"vite": "5.x || 6.x || 7.x || 8.x"
},
"dependencies": {
"kolorist": "^1.8.0",
Expand Down
3 changes: 3 additions & 0 deletions src/plugins/prerender-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ export function prerenderPlugin({ prerenderScript, renderTarget, additionalPrere
);
const sourceContent = await fs.readFile(sourcePath, 'utf-8');

// TODO: `line` uses below are off by one with Vite 8, might be a bug?
// Not the end of the world for now though it's annoying.

// `simple-code-frame` has 1-based line numbers
const frame = createCodeFrame(sourceContent, line - 1, column);
message += `\n
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/environments/cloudflare/src/server.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
console.log("Server is running...");
export default {};
2 changes: 1 addition & 1 deletion tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test('Should bail on merging preload & entry chunks if user configures `manualCh
build: {
rollupOptions: {
output: {
manualChunks: {}
manualChunks() {}
}
}
},
Expand Down
Loading