File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -336,9 +336,18 @@ const r4 =
336
336
337
337
function requiresAsImports ( text : string ) {
338
338
const withImports = text
339
- . replace ( r4 , `import * as $7Exports from $4; const { $8 } = $7Exports.$7;` )
339
+ // const format0 = require('ajv-formats').formats.uri
340
+ // import { formats } from 'ajv-formats';
341
+ // const { uri: format0 } = formats;
342
+ . replace ( r4 , `import { $7 } from $4; const { $8: $2 } = $7;` )
343
+ // const { formats } = require('ajv-formats');
344
+ // import { formats } from 'ajv-formats';
340
345
. replace ( r3 , `import { $3 } from $5;` )
346
+ // const f = require('ajv-formats').formats;
347
+ // import { formats as f } from 'ajv-formats';
341
348
. replace ( r2 , `import { $7 as $2 } from $4;` )
349
+ // const formats = require('ajv-formats');
350
+ // import formats from 'ajv-formats';
342
351
. replace ( r1 , `import $2 from $4;` ) ;
343
352
344
353
const importReg = / i m p o r t .+ ; / gm;
You can’t perform that action at this time.
0 commit comments