mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
- fix catch-all routes not working in dev server
- fix crash - fix require bug
This commit is contained in:
@@ -2330,6 +2330,9 @@ fn NewPrinter(
|
||||
if (p.options.require_ref) |require_ref| {
|
||||
p.printSymbol(require_ref);
|
||||
p.print(".resolve");
|
||||
} else if (p.options.module_type == .internal_bake_dev) {
|
||||
p.printSymbol(p.options.hmr_ref);
|
||||
p.print(".requireResolve");
|
||||
} else {
|
||||
p.print("require.resolve");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user