diff options
| author | 2021-06-12 19:10:08 -0700 | |
|---|---|---|
| committer | 2021-06-12 19:10:08 -0700 | |
| commit | c51c65325faf6692d3eebf92927f56cf35f6b613 (patch) | |
| tree | 892254ba9a7f0241944283d6766ab54ca0c35e8a /src/linker.zig | |
| parent | f43234bc300b7e9d9d572dc1b7d8e156ad01576a (diff) | |
| download | bun-c51c65325faf6692d3eebf92927f56cf35f6b613.tar.gz bun-c51c65325faf6692d3eebf92927f56cf35f6b613.tar.zst bun-c51c65325faf6692d3eebf92927f56cf35f6b613.zip | |
I think thats the JS part of HMR
Former-commit-id: 43380a4d68d57f3d78f5b1e00962a59461140967
Diffstat (limited to '')
| -rw-r--r-- | src/linker.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/linker.zig b/src/linker.zig index 15b2e82e6..71f954774 100644 --- a/src/linker.zig +++ b/src/linker.zig @@ -301,12 +301,12 @@ pub fn NewLinker(comptime BundlerType: type) type { // Change the import order so that any bundled imports appear last // This is to make it so the bundle (which should be quite large) is least likely to block rendering - if (needs_bundle) { - const sorter = ImportStatementSorter{ .import_records = result.ast.import_records }; - for (result.ast.parts) |*part, i| { - std.sort.sort(js_ast.Stmt, part.stmts, sorter, ImportStatementSorter.lessThan); - } - } + // if (needs_bundle) { + // const sorter = ImportStatementSorter{ .import_records = result.ast.import_records }; + // for (result.ast.parts) |*part, i| { + // std.sort.sort(js_ast.Stmt, part.stmts, sorter, ImportStatementSorter.lessThan); + // } + // } } const ImportPathsList = allocators.BSSStringList(512, 128); |
