Retain comment
This commit is contained in:
parent
26c13a28bf
commit
49d941c00e
|
|
@ -293,6 +293,7 @@ function folderIsModule(folder: string): boolean {
|
|||
const isDeno = typeof process.versions.deno === 'string';
|
||||
if (!packageJsonPath)
|
||||
return isDeno;
|
||||
// Rely on `require` internal caching logic.
|
||||
const type = require(packageJsonPath).type;
|
||||
if (type === 'module')
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue