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 9860d26 commit 944075eCopy full SHA for 944075e
packages/core/src/config.ts
@@ -890,8 +890,11 @@ const composeEntryConfig = async (
890
if (bundle !== false) {
891
let isFileEntry = false;
892
traverseEntryQuery(entries, (entry) => {
893
- if (fs.existsSync(entry)) {
894
- const stats = fs.statSync(entry);
+ const entryAbsPath = path.isAbsolute(entry)
+ ? entry
895
+ : path.resolve(root, entry);
896
+ if (fs.existsSync(entryAbsPath)) {
897
+ const stats = fs.statSync(entryAbsPath);
898
isFileEntry = stats.isFile();
899
}
900
0 commit comments