Skip to content

Commit b256569

Browse files
committed
chore: drop obsolete skipPatterns from config
1 parent d3b7be4 commit b256569

4 files changed

Lines changed: 2 additions & 13 deletions

File tree

cmp/compiler/src/plugin/next-compiler-loader.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { LingoConfig } from "../types";
2-
import { shouldTransformFile, transformComponent } from "./transform";
2+
import { transformComponent } from "./transform";
33
import { logger } from "../utils/logger";
44
import { MetadataManager } from "../metadata/manager";
55

@@ -27,11 +27,6 @@ export default async function nextCompilerLoader(
2727
this.getOptions();
2828

2929
const metadataManager = new MetadataManager(config.metadataFilePath);
30-
// TODO (AleksandrSl 07/12/2025): Remove too I think
31-
// Check if this file should be transformed
32-
if (!shouldTransformFile(this.resourcePath, config)) {
33-
return callback(null, source);
34-
}
3530

3631
logger.debug(`[Turbopack Loader] Processing: ${this.resourcePath}`);
3732

cmp/compiler/src/types.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,6 @@ export type LingoConfig = {
116116
*/
117117
useDirective: boolean;
118118

119-
/**
120-
* Skip transformation for specific patterns
121-
*/
122-
skipPatterns: RegExp[];
123-
124119
/**
125120
* Model configuration for lingo translator
126121
* - Use "lingo.dev" for Lingo.dev Engine (recommended)

cmp/compiler/src/utils/config-factory.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export const DEFAULT_CONFIG = {
1414
sourceRoot: "src",
1515
lingoDir: "lingo",
1616
useDirective: false,
17-
skipPatterns: [/node_modules/, /\.spec\./, /\.test\./] as RegExp[],
1817
dev: {
1918
translationServerStartPort: 60000,
2019
},

cmp/compiler/src/utils/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,5 @@ export class Logger {
8181

8282
export const logger = new Logger({
8383
enableConsole: true,
84-
// enableDebug: true,
84+
enableDebug: true,
8585
});

0 commit comments

Comments
 (0)