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 3f39c6a commit 96019ebCopy full SHA for 96019eb
index.js
@@ -8,7 +8,7 @@ const fs = require('fs-extra')
8
const fileModuleNamePattern = /^[./]/
9
const packageNamePattern = /^(@(.+?)\/)?([^/]+)/
10
11
-const isTrueRequire = path => path.scope.getBindings().require == null
+const isTrueRequire = path => path.scope.lookup('require') == null
12
13
async function buildImportList(startingFiles) {
14
if (typeof startingFiles === 'string') startingFiles = [startingFiles]
0 commit comments