Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions packages/classes/transformer-plugin/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function getDecoratorOrUndefinedByNames(
names: string[],
decorators?: readonly Decorator[]
): Decorator | undefined {
return (decorators ? decorators : []).find((item) =>
return (decorators || []).find((item) =>
names.includes(getDecoratorName(item) as string)
);
}
Expand Down Expand Up @@ -110,11 +110,6 @@ export function replaceImportPath(
if (!importPath) {
return undefined;
}

if (process.platform === 'win32') {
return typeReference.replace('import', 'require')
}

importPath = importPath.slice(2, importPath.length - 1);

let relativePath = posix.relative(dirname(fileName), importPath);
Expand Down