Skip to content

Commit

Permalink
Fix vite support (attempt 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Nov 5, 2024
1 parent 4065a2b commit 2e27c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ember-repl/addon/src/compile/formats/gjs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async function transform(
// so we have to use the default export (which is all the exports)
let maybeBabel = (await import('@babel/standalone')) as any;
// Handle difference between vite and webpack in consuming projects...
let babel: Babel = 'default' in maybeBabel ? maybeBabel.default : maybeBabel;
let babel: Babel = 'availablePlugins' in maybeBabel ? maybeBabel : maybeBabel.default;

return babel.transform(intermediate, {
filename: `${name}.js`,
Expand Down

0 comments on commit 2e27c0a

Please sign in to comment.