mirror of
https://github.com/developit/microbundle.git
synced 2026-01-18 13:56:35 +00:00
Fix custom source with cwd issue: resolve source path before passing it further
This commit is contained in:
parent
64986611ef
commit
56f6b7a697
@ -94,7 +94,7 @@ export default async function microbundle(options) {
|
||||
.concat(
|
||||
options.entries && options.entries.length
|
||||
? options.entries
|
||||
: options.pkg.source ||
|
||||
: (options.pkg.source && resolve(cwd, options.pkg.source)) ||
|
||||
((await isDir(resolve(cwd, 'src'))) && (await jsOrTs('src/index'))) ||
|
||||
(await jsOrTs('index')) ||
|
||||
options.pkg.module,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user