Skip to content

Commit

Permalink
fix: error in vite
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Oct 2, 2024
1 parent 4ea4ddd commit ac979de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thin-points-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zazuko/env": patch
---

Prevent `ReferenceError: Cannot access 'Dataset' before initialization` in vite
2 changes: 1 addition & 1 deletion packages/env/lib/DatasetExt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface DatasetCtor {
}

export function createConstructor(env: Environment<FormatsFactory>): DatasetCtor {
return class Dataset extends SimplerDataset {
return class extends SimplerDataset {
import(...[stream]: Rest<Parameters<typeof fromStream>>) {
return fromStream(this, stream)
}
Expand Down

0 comments on commit ac979de

Please sign in to comment.