We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a90bcb4 commit 1a5e3e4Copy full SHA for 1a5e3e4
index.js
@@ -8,6 +8,10 @@ function posixify(file) {
8
return file.replace(/[/\\]/g, '/');
9
}
10
11
+function interopEsmDefault(mod) {
12
+ return mod && mod.__esModule && mod.default ? mod.default : mod;
13
+}
14
+
15
const virtualModules = new Map();
16
let index = 0;
17
@@ -26,7 +30,7 @@ for (let i = 0; i < process.argv.length; i++) {
26
30
27
31
try {
28
32
const configPath = path.resolve(process.cwd(), configFile);
29
- const config = require(configPath);
33
+ const config = interopEsmDefault(require(configPath));
34
let found = false;
35
if (Array.isArray(config)) {
36
found = config.some(check);
0 commit comments