diff --git a/packages/start-plugin-core/src/start-compiler-plugin/plugin.ts b/packages/start-plugin-core/src/start-compiler-plugin/plugin.ts index 973b2b192b..a958fc9416 100644 --- a/packages/start-plugin-core/src/start-compiler-plugin/plugin.ts +++ b/packages/start-plugin-core/src/start-compiler-plugin/plugin.ts @@ -232,7 +232,7 @@ export function startCompilerPlugin( transform: { filter: { id: { - exclude: new RegExp(`${SERVER_FN_LOOKUP}$`), + exclude: [new RegExp(`${SERVER_FN_LOOKUP}$`), /node_modules\/(?!@tanstack)/], include: TRANSFORM_ID_REGEX, }, code: {