File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ export type ImportOrExportClause = ts.ImportDeclaration["importClause"] | ts.Exp
20
20
21
21
export interface TsTransformPathsConfig extends PluginConfig {
22
22
readonly useRootDirs ?: boolean ;
23
- readonly overwriteNodeModules ?: boolean ;
24
23
}
25
24
26
25
// endregion
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ export function resolvePathAndUpdateNode(
27
27
tsInstance . sys
28
28
) ;
29
29
30
- if ( ! config . overwriteNodeModules && resolvedModule ?. isExternalLibraryImport ) return node ;
30
+ if ( resolvedModule ?. isExternalLibraryImport ) return node ;
31
31
32
32
let outputPath : string ;
33
- if ( ! resolvedModule || config . overwriteNodeModules ) {
33
+ if ( ! resolvedModule ) {
34
34
const maybeURL = failedLookupLocations [ 0 ] ;
35
35
if ( ! isURL ( maybeURL ) ) return node ;
36
36
outputPath = maybeURL ;
You can’t perform that action at this time.
0 commit comments