File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 11import { generate } from 'astring'
22import * as es from 'estree'
3+ // @ts -expect-error
4+ import runAltErgo from '@joeychenofficial/alt-ergo-modified'
35
46import { simple } from '../utils/walkers'
57import { InfiniteLoopError , InfiniteLoopErrorType } from './errors'
68import { getOriginalName } from './instrument'
79import * as st from './state'
810import { shallowConcretize } from './symbolic'
911
10- // eslint-disable-next-line @typescript-eslint/no-require-imports
11- const runAltErgo : any = require ( '@joeychenofficial/alt-ergo-modified' )
12-
1312const options = {
1413 answers_with_loc : false ,
1514 input_format : 'Native' ,
Original file line number Diff line number Diff line change @@ -118,10 +118,7 @@ export const memoizedGetModuleDocsAsync = getMemoizedDocsImporter()
118118 webpack so that webpack doesn't try to compile them away.
119119*/
120120const bundleAndTabImporter = wrapImporter < { default : ModuleBundle } > (
121- typeof window !== 'undefined' && process . env . NODE_ENV !== 'test'
122- ? ( new Function ( 'path' , 'return import(`${path}?q=${Date.now()}`)' ) as any )
123- : // eslint-disable-next-line @typescript-eslint/no-require-imports
124- p => Promise . resolve ( require ( p ) )
121+ new Function ( 'path' , 'return import(`${path}?q=${Date.now()}`)' ) as any
125122)
126123
127124export async function loadModuleBundleAsync (
You can’t perform that action at this time.
0 commit comments