Skip to content

Commit ca55e18

Browse files
fioneraclaude
andcommitted
fix(web): use named imports from @babel/core
Babel 8 ships as native ESM without a default export, so the dependabot bump to @babel/core 8.0.1 broke the Vite config load in both the JS and Go (e2e) workflows. Import the four used functions as named exports instead. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent a4c8974 commit ca55e18

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

web/build/inline-hooks.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import {readFile, stat} from "node:fs/promises";
22
import {dirname, isAbsolute, relative, resolve, sep} from "node:path";
3-
import babel from "@babel/core";
3+
import {parseAsync, transformFromAstAsync, traverse, types} from "@babel/core";
44
import {searchForWorkspaceRoot} from "vite";
55

6-
const {parseAsync, transformFromAstAsync, traverse, types} = babel;
7-
86
const MARKER_TOKEN = "@berghain:inline";
97
const SENTINEL = "__BERGHAIN_INLINE_PHASE__";
108

0 commit comments

Comments
 (0)