@putout/plugin-esm 9.5.0 → 9.6.0
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.
|
@@ -9,6 +9,7 @@ import {determineImportType} from '#determine-import-type';
|
|
|
9
9
|
import {getImportsTuples} from '#get-imports-tuples';
|
|
10
10
|
import {transformNamespaceImport} from './transform-namespace-import.js';
|
|
11
11
|
|
|
12
|
+
const isDeclaration = ([, , , type]) => type !== 'dynamic';
|
|
12
13
|
const {
|
|
13
14
|
getFilename,
|
|
14
15
|
readFileContent,
|
|
@@ -53,7 +54,9 @@ export const scan = (rootPath, {push, trackFile, crawlFile}) => {
|
|
|
53
54
|
aliasBased: true,
|
|
54
55
|
});
|
|
55
56
|
|
|
56
|
-
|
|
57
|
+
const declarations = importsTuples.filter(isDeclaration);
|
|
58
|
+
|
|
59
|
+
for (const [name, source, importedFilename] of declarations) {
|
|
57
60
|
const importType = determineImportType({
|
|
58
61
|
name,
|
|
59
62
|
rootPath,
|
package/package.json
CHANGED