Skip to content

Commit

Permalink
fix(registry): 🐛 clear registry at start (#37)
Browse files Browse the repository at this point in the history
* fix(registery): 🐛 clear registery at start

* Update client/src/main.ts

Co-authored-by: Jared McAteer <[email protected]>

* fix(registry): 🐛 clear registry at error and end

* fix(registery): 🐛 clear registery at start

* Update client/src/main.ts

Co-authored-by: Jared McAteer <[email protected]>

* fix(registry): 🐛 clear registry also at error

---------

Co-authored-by: Jared McAteer <[email protected]>
  • Loading branch information
fb-sean and jaredmcateer authored Sep 5, 2024
1 parent d877b81 commit 332ff52
Show file tree
Hide file tree
Showing 3 changed files with 3,129 additions and 2,505 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-mails-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@heatsrc/vue-declassified": patch
---

Reset registry when stopping on collisions
6 changes: 5 additions & 1 deletion client/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ export async function convertScript(src: string, opts: Partial<VuedcOptions> = {
}

if (opts.stopOnCollisions && hasCollisions()) {
throw new VuedcError(getCollisionsWarning(false));
const collisionsWarning = getCollisionsWarning(false);

resetRegistry();

throw new VuedcError(collisionsWarning);
}

let warnings = getCollisionsWarning();
Expand Down
Loading

0 comments on commit 332ff52

Please sign in to comment.