10BC0
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.
1 parent 5e29602 commit 324669cCopy full SHA for 324669c
packages/vite/src/node/optimizer/scan.ts
@@ -237,6 +237,7 @@ async function computeEntries(environment: ScanEnvironment) {
237
p,
238
path.join(process.cwd(), '*'),
239
{
240
+ isEntry: true,
241
scan: true,
242
},
243
)
packages/vite/src/node/plugins/resolve.ts
@@ -254,7 +254,9 @@ export function resolvePlugin(
254
// relative
255
if (
256
id[0] === '.' ||
257
- ((preferRelative || importer?.endsWith('.html')) &&
+ ((preferRelative ||
258
+ resolveOpts.isEntry ||
259
+ importer?.endsWith('.html')) &&
260
startsWithWordCharRE.test(id))
261
) {
262
const basedir = importer ? path.dirname(importer) : process.cwd()
0 commit comments