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';
|
const isDeno = typeof process.versions.deno === 'string';
|
||||||
if (!packageJsonPath)
|
if (!packageJsonPath)
|
||||||
return isDeno;
|
return isDeno;
|
||||||
|
// Rely on `require` internal caching logic.
|
||||||
const type = require(packageJsonPath).type;
|
const type = require(packageJsonPath).type;
|
||||||
if (type === 'module')
|
if (type === 'module')
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue