Skip to content

Commit be1c95f

Browse files
authored
chore: avoid importing types directly from Rollup (#15668)
This fixes a type error that happens in vite-ecosystem-ci https://github.com/vitejs/vite-ecosystem-ci/actions/runs/24066008373/job/70192137233 --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs - [ ] This message body should clearly illustrate what problems it solves. - [ ] Ideally, include a test that fails without this PR but passes with it. ### Tests - [ ] Run the tests with `pnpm test` and lint the project with `pnpm lint` and `pnpm check` ### Changesets - [ ] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running `pnpm changeset` and following the prompts. Changesets that add features should be `minor` and those that fix bugs should be `patch`. Please prefix changeset messages with `feat:`, `fix:`, or `chore:`. ### Edits - [ ] Please ensure that 'Allow edits from maintainers' is checked. PRs without this option may be closed.
1 parent 1615af7 commit be1c95f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/kit/src/exports/vite/build/remote.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @import { ServerMetadata } from 'types' */
2-
/** @import { OutputBundle } from 'rollup' */
2+
/** @import { Rollup } from 'vite' */
33

44
import fs from 'node:fs';
55
import path from 'node:path';
@@ -13,7 +13,7 @@ import { import_peer } from '../../../utils/import.js';
1313
* @param {Array<{ hash: string, file: string }>} remotes
1414
* @param {ServerMetadata} metadata
1515
* @param {string} cwd
16-
* @param {OutputBundle} server_bundle
16+
* @param {Rollup.OutputBundle} server_bundle
1717
* @param {NonNullable<import('vitest/config').ViteUserConfig['build']>['sourcemap']} sourcemap
1818
*/
1919
export async function treeshake_prerendered_remotes(

0 commit comments

Comments
 (0)