bare-module-traverse 2.5.4 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -406,7 +406,10 @@ exports.preresolved = function* (url, source, resolutions, artifacts, visited, o
|
|
|
406
406
|
const lexer = { imports: [], exports: [] }
|
|
407
407
|
|
|
408
408
|
if (type === constants.SCRIPT || type === constants.MODULE) {
|
|
409
|
-
|
|
409
|
+
const lexed = lex(source)
|
|
410
|
+
|
|
411
|
+
lexer.imports = lexed.imports
|
|
412
|
+
lexer.exports = lexed.exports
|
|
410
413
|
}
|
|
411
414
|
|
|
412
415
|
yield {
|