File tree Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -50,23 +50,6 @@ const transformer = (_: ts.Program) => (context: ts.TransformationContext) => (
50
50
) {
51
51
return undefined ;
52
52
}
53
- if (
54
- ts . isCallExpression ( node ) &&
55
- ts . isIdentifier ( node . expression ) &&
56
- node . expression . text === "require" &&
57
- ts . isStringLiteral ( node . arguments [ 0 ] ) &&
58
- node . arguments . length === 1
59
- ) {
60
- const firstArg = node . arguments [ 0 ] as ts . StringLiteral ;
61
- const file = bindModuleToFile ( firstArg . text ) ;
62
- if ( ! file ) {
63
- return node ;
64
- }
65
- const fileLiteral = ts . createLiteral ( file ) ;
66
- return ts . updateCall ( node , node . expression , node . typeArguments , [
67
- fileLiteral
68
- ] ) ;
69
- }
70
53
if ( ts . isImportDeclaration ( node ) ) {
71
54
return unpathImportDeclaration ( node ) ;
72
55
}
Original file line number Diff line number Diff line change 1
- const { sum, subs } = require ( "@utils" ) ;
2
- const { NoRuntimecodeHere } = require ( "@utils/types-only" ) ;
1
+ export { sum } from "@utils" ;
3
2
export { NoRuntimecodeHere } from "@utils/types-only" ;
4
- import { NoRuntimecodeHere } from "@utils" ;
3
+ import { subs , NoRuntimecodeHere } from "@utils" ;
5
4
import "@circular/b" ;
6
5
import { A } from "@circular/a" ;
7
6
You can’t perform that action at this time.
0 commit comments