Skip to content

Commit

Permalink
fix esbuild >= 0.21.0 panic without object-accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrious committed Jun 7, 2024
1 parent 73f2ea4 commit ed3910d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Features.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@
if (this.cancelled) return
for (const feat of features) {
// Bypass a bug where esbuild >= 0.21.0 will panic without the 'object-accessors' feature.
if (feat === 'object-accessors' && esbuild.version >= '0.21.0') {
continue
}
options.supported = { [feat]: false }
try {
await esbuild.transform(code, options).then((r) => {
Expand Down

0 comments on commit ed3910d

Please sign in to comment.