-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix vite-ecosystem-ci integration (#8997)
- Loading branch information
1 parent
f574523
commit bfdcc66
Showing
5 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
/* eslint-disable @typescript-eslint/consistent-type-imports */ | ||
import type { NodePath } from "@babel/traverse"; | ||
import type { types as BabelTypes } from "@babel/core"; | ||
import { parse } from "@babel/parser"; | ||
import * as t from "@babel/types"; | ||
import traverse from "@babel/traverse"; | ||
import generate from "@babel/generator"; | ||
|
||
// These `require`s were needed to support building within vite-ecosystem-ci, | ||
// otherwise we get errors that `traverse` and `generate` are not functions. | ||
const traverse = require("@babel/traverse") | ||
.default as typeof import("@babel/traverse").default; | ||
const generate = require("@babel/generator") | ||
.default as typeof import("@babel/generator").default; | ||
|
||
export { traverse, generate, parse, t }; | ||
export type { BabelTypes, NodePath }; |