Commit 38870c8
committed
add pkg/cjsexports: pure-Go CJS export detection using esbuild parser (#5)
Adds a public API for detecting CommonJS named exports by walking the esbuild
AST. Handles exports.X, module.exports, Object.defineProperty, annotation
pattern, variable aliasing, IIFE, conditionals, NODE_ENV, call mode, and
function return analysis.
Signed-off-by: Christian Stewart <christian@aperture.us>1 parent f9e3a02 commit 38870c8
File tree
4 files changed
+2172
-1
lines changed- .github/workflows
- pkg/cjsexports
- scripts
4 files changed
+2172
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
0 commit comments