We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
build.rollupOptions.input
1 parent 1ea2222 commit 9759c29Copy full SHA for 9759c29
packages/vite/src/node/optimizer/scan.ts
@@ -231,10 +231,15 @@ async function computeEntries(environment: ScanEnvironment) {
231
entries = await globEntries(explicitEntryPatterns, environment)
232
} else if (buildInput) {
233
const resolvePath = async (p: string) => {
234
+ // rollup resolves the input from process.cwd()
235
const id = (
- await environment.pluginContainer.resolveId(p, undefined, {
236
- scan: true,
237
- })
+ await environment.pluginContainer.resolveId(
+ p,
238
+ path.join(process.cwd(), '*'),
239
+ {
240
+ scan: true,
241
+ },
242
+ )
243
)?.id
244
if (id === undefined) {
245
throw new Error(
0 commit comments