File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
import type { Transformer , TransformOptions } from '@jest/transform'
2
2
import type { Config } from '@jest/types'
3
3
import type * as _babel from 'babel__core'
4
- import type * as _esbuild from 'esbuild'
5
4
import type * as _ts from 'typescript'
6
5
7
6
import type { ConfigSet } from './config'
@@ -27,7 +26,13 @@ declare module '@jest/types' {
27
26
*/
28
27
export type TBabelCore = typeof _babel
29
28
export type TTypeScript = typeof _ts
30
- export type TEsBuild = typeof _esbuild
29
+ // Stimulate `esbuild` type to avoid import `esbuild` while building the assets which are shipped to npm
30
+ export interface TEsBuild {
31
+ transformSync (
32
+ input : string ,
33
+ options ?: { loader : 'ts' | 'js' ; format : 'cjs' | 'esm' ; target : string } ,
34
+ ) : { code : string ; map : string }
35
+ }
31
36
/**
32
37
* @internal
33
38
*/
You can’t perform that action at this time.
0 commit comments