Skip to content

Commit 6a57d0d

Browse files
committed
bundler already discards stale results
1 parent af978ec commit 6a57d0d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/repl/src/lib/Repl.svelte

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,10 @@
9393
svelteVersion
9494
});
9595
96-
let current_token: Symbol;
97-
9896
async function rebundle() {
99-
const token = (current_token = Symbol());
100-
const result = await bundler!.bundle(workspace.files as File[], {
97+
$bundle = await bundler!.bundle(workspace.files as File[], {
10198
tailwind: workspace.tailwind
10299
});
103-
if (token === current_token) $bundle = result;
104100
}
105101
106102
async function migrate() {

0 commit comments

Comments
 (0)