git
ask
hub
Privacy
Terms
Sign in with GitHub
geekyjunk/stitchr
↗
Language ·
TypeScript
Simplify and Visualize This Repo
Scan the safety of this repo
Self Host this repo
Check out more work of Developer: geekyjunk
Ask anything about this repo to start.
I'm building a JavaScript bundler and want to traverse CommonJS require() calls. Show me how to use Babel's AST traversal to find and extract all require() string arguments from a source file.
Explain how a module registry and numeric ID system work in a bundler: why replace file paths with IDs, and how does the runtime use them to load modules in the right order?
I want to detect circular dependencies during dependency graph traversal. Write a TypeScript function using depth-first search that detects cycles and logs a warning for each one found.
How do I add source map support to a JavaScript bundler? What data do I need to collect during parsing, and what format does a .map file use?
Full explanation on explaingit →
📎
Send
By chatting or signing in you agree to the
Terms
and chat-message logging (revocable in
History
).