dependency-cruiser 18.3.0 → 18.3.1
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/package.json
CHANGED
|
@@ -4,10 +4,14 @@ import tryImport from "#utl/try-import.mjs";
|
|
|
4
4
|
import meta from "#meta.cjs";
|
|
5
5
|
|
|
6
6
|
/** @type {import('@swc/core/Visitor')} */
|
|
7
|
-
const
|
|
7
|
+
const lSwcVisitorModule = await tryImport(
|
|
8
8
|
"@swc/core/Visitor.js",
|
|
9
9
|
meta.supportedTranspilers.swc,
|
|
10
10
|
);
|
|
11
|
+
// under bun lSwcVisitorModule resolves to something different
|
|
12
|
+
// as under node.js - see https://github.com/sverweij/dependency-cruiser/issues/1092
|
|
13
|
+
// for details. In order to enable running dependency-cruiser on both:
|
|
14
|
+
const Visitor = lSwcVisitorModule.Visitor ?? lSwcVisitorModule;
|
|
11
15
|
|
|
12
16
|
function pryStringsFromArguments(pArguments) {
|
|
13
17
|
let lReturnValue = null;
|