Skip to content

Commit 8cd0019

Browse files
fix: detect bound require reexports in cjs analysis (#32163)
Part of #31347 Fixes #27898 This update solves the module resolution. So the behaviour of stdio output of `redocly` becomes the same as Node.js. However, the problem of hanging is still alive with this PR. --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
1 parent 9e7fb63 commit 8cd0019

File tree

9 files changed

+60
-3
lines changed

9 files changed

+60
-3
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ license = "MIT"
7676
repository = "https://github.com/denoland/deno"
7777

7878
[workspace.dependencies]
79-
deno_ast = { version = "=0.53.0", features = ["transpiling"] }
79+
deno_ast = { version = "=0.53.1", features = ["transpiling"] }
8080
deno_core = { version = "0.385.0" }
8181

8282
deno_cache_dir = "=0.27.0"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"args": "run main.ts",
3+
"output": "main.out"
4+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"0": "SCALAR",
3+
"1": "MAPPING",
4+
"2": "MAP",
5+
"3": "SEQ",
6+
SCALAR: 0,
7+
MAPPING: 1,
8+
MAP: 2,
9+
SEQ: 3
10+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import * as yamlAst from "mock-yaml-ast-parser";
2+
3+
const kind = (yamlAst as { Kind?: unknown }).Kind;
4+
console.log(kind);

tests/specs/node/cjs_detect_bound_reexport/node_modules/mock-yaml-ast-parser/dist/src/index.js

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/specs/node/cjs_detect_bound_reexport/node_modules/mock-yaml-ast-parser/dist/src/yamlAST.js

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/specs/node/cjs_detect_bound_reexport/node_modules/mock-yaml-ast-parser/package.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "module"
3+
}

0 commit comments

Comments
 (0)