mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 12:51:54 +00:00
Split JS parser into multiple files (#20880)
Splits up js_parser.zig into multiple files. Also changes visitExprInOut to use function calls rather than switch Not ready: - [ ] P.zig is ~70,000 tokens, still needs to get smaller - [x] ~~measure zig build time before & after (is it slower?)~~ no significant impact --------- Co-authored-by: pfgithub <6010774+pfgithub@users.noreply.github.com>
This commit is contained in:
@@ -1885,7 +1885,6 @@ pub const Resolver = struct {
|
||||
|
||||
// this is the magic!
|
||||
if (global_cache.canUse(any_node_modules_folder) and r.usePackageManager() and esm_ != null) {
|
||||
if (comptime bun.fast_debug_build_mode and bun.fast_debug_build_cmd != .RunCommand) unreachable;
|
||||
const esm = esm_.?.withAutoVersion();
|
||||
load_module_from_cache: {
|
||||
// If the source directory doesn't have a node_modules directory, we can
|
||||
|
||||
Reference in New Issue
Block a user