diff --git a/packages/router-plugin/src/core/code-splitter/compilers.ts b/packages/router-plugin/src/core/code-splitter/compilers.ts
index 5c2da5d3907..87202a271f1 100644
--- a/packages/router-plugin/src/core/code-splitter/compilers.ts
+++ b/packages/router-plugin/src/core/code-splitter/compilers.ts
@@ -727,19 +727,33 @@ export function compileCodeSplitVirtualRoute(
if (path.node.declaration) {
if (t.isVariableDeclaration(path.node.declaration)) {
- path.replaceWith(
- t.importDeclaration(
- path.node.declaration.declarations.map((decl) =>
- t.importSpecifier(
- t.identifier((decl.id as any).name),
- t.identifier((decl.id as any).name),
- ),
- ),
- t.stringLiteral(
- removeSplitSearchParamFromFilename(opts.filename),
+ const importDecl = t.importDeclaration(
+ path.node.declaration.declarations.map((decl) =>
+ t.importSpecifier(
+ t.identifier((decl.id as any).name),
+ t.identifier((decl.id as any).name),
),
),
+ t.stringLiteral(
+ removeSplitSearchParamFromFilename(opts.filename),
+ ),
)
+
+ path.replaceWith(importDecl)
+
+ // Track the imported identifier paths so deadCodeElimination can remove them if unused
+ // We need to traverse the newly created import to get the identifier paths
+ path.traverse({
+ Identifier(identPath) {
+ // Only track the local binding identifiers (the imported names)
+ if (
+ identPath.parentPath.isImportSpecifier() &&
+ identPath.key === 'local'
+ ) {
+ refIdents.add(identPath)
+ }
+ },
+ })
}
}
},
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/arrow-function@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/arrow-function@errorComponent.tsx
index b75acfb436c..5f67a6fff1b 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/arrow-function@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/arrow-function@errorComponent.tsx
@@ -1,2 +1 @@
-import * as React from 'react';
-import { Route } from "arrow-function.tsx";
\ No newline at end of file
+import * as React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/arrow-function@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/arrow-function@notFoundComponent.tsx
index b75acfb436c..5f67a6fff1b 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/arrow-function@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/arrow-function@notFoundComponent.tsx
@@ -1,2 +1 @@
-import * as React from 'react';
-import { Route } from "arrow-function.tsx";
\ No newline at end of file
+import * as React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/boolean-null-literals@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/boolean-null-literals@component.tsx
index 8ff04083aa2..c49c9e93a31 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/boolean-null-literals@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/boolean-null-literals@component.tsx
@@ -1,4 +1,3 @@
// Test errorComponent with false literal
-import { Route } from "boolean-null-literals.tsx";
const SplitComponent = () =>
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/chinese@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/chinese@errorComponent.tsx
index 3cf6f4a7d61..b4de370f4ea 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/chinese@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/chinese@errorComponent.tsx
@@ -1,5 +1,4 @@
import * as React from 'react';
-import { Route } from "chinese.tsx";
interface DemoProps {
title: string;
}
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/chinese@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/chinese@notFoundComponent.tsx
index 3cf6f4a7d61..b4de370f4ea 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/chinese@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/chinese@notFoundComponent.tsx
@@ -1,5 +1,4 @@
import * as React from 'react';
-import { Route } from "chinese.tsx";
interface DemoProps {
title: string;
}
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-arrow-function@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-arrow-function@component.tsx
index a3304c7eb22..39ace71ebea 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-arrow-function@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-arrow-function@component.tsx
@@ -16,5 +16,4 @@ function OtherComponent() {
});
return
App component name is {componentName}
;
}
-import { Route } from "circular-reference-arrow-function.tsx";
export { App as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-arrow-function@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-arrow-function@errorComponent.tsx
index 00e8742c346..35412249e4b 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-arrow-function@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-arrow-function@errorComponent.tsx
@@ -15,5 +15,4 @@ function OtherComponent() {
App
});
return
App component name is {componentName}
;
-}
-import { Route } from "circular-reference-arrow-function.tsx";
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-arrow-function@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-arrow-function@notFoundComponent.tsx
index 00e8742c346..35412249e4b 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-arrow-function@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-arrow-function@notFoundComponent.tsx
@@ -15,5 +15,4 @@ function OtherComponent() {
App
});
return
App component name is {componentName}
;
-}
-import { Route } from "circular-reference-arrow-function.tsx";
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-function@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-function@component.tsx
index 325cc0e0561..96a753ad8a6 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-function@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-function@component.tsx
@@ -16,5 +16,4 @@ function OtherComponent() {
});
return
App component name is {componentName}
;
}
-import { Route } from "circular-reference-function.tsx";
export { App as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-function@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-function@errorComponent.tsx
index fe3e50ad204..b6eb70dc9f5 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-function@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-function@errorComponent.tsx
@@ -15,5 +15,4 @@ function OtherComponent() {
App
});
return
App component name is {componentName}
;
-}
-import { Route } from "circular-reference-function.tsx";
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-function@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-function@notFoundComponent.tsx
index fe3e50ad204..b6eb70dc9f5 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-function@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/circular-reference-function@notFoundComponent.tsx
@@ -15,5 +15,4 @@ function OtherComponent() {
App
});
return
App component name is {componentName}
;
-}
-import { Route } from "circular-reference-function.tsx";
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/conditional-properties@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/conditional-properties@component.tsx
index 02dddb8d13c..aaf3410c698 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/conditional-properties@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/conditional-properties@component.tsx
@@ -1,6 +1,5 @@
import { isEnabled } from '@features/feature-flags';
import TrueImport from '@modules/true-component';
import { FalseComponent } from '@modules/false-component';
-import { Route } from "conditional-properties.tsx";
const SplitComponent = isEnabled ? TrueImport.Component : FalseComponent;
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/conditional-properties@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/conditional-properties@errorComponent.tsx
index bf6f4765048..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/conditional-properties@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/conditional-properties@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "conditional-properties.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/conditional-properties@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/conditional-properties@notFoundComponent.tsx
index bf6f4765048..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/conditional-properties@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/conditional-properties@notFoundComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "conditional-properties.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/destructured-react-memo-imported-component@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/destructured-react-memo-imported-component@component.tsx
index 1b0ce3e5b5e..446d55e26bc 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/destructured-react-memo-imported-component@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/destructured-react-memo-imported-component@component.tsx
@@ -1,5 +1,4 @@
import { memo } from 'react';
-import { Route } from "destructured-react-memo-imported-component.tsx";
function Component() {
return
Component
;
}
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/destructured-react-memo-imported-component@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/destructured-react-memo-imported-component@errorComponent.tsx
index ddd3c054455..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/destructured-react-memo-imported-component@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/destructured-react-memo-imported-component@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "destructured-react-memo-imported-component.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/destructured-react-memo-imported-component@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/destructured-react-memo-imported-component@notFoundComponent.tsx
index ddd3c054455..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/destructured-react-memo-imported-component@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/destructured-react-memo-imported-component@notFoundComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "destructured-react-memo-imported-component.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/explicit-undefined-component@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/explicit-undefined-component@component.tsx
index 3974456ff4d..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/explicit-undefined-component@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/explicit-undefined-component@component.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "explicit-undefined-component.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/explicit-undefined-component@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/explicit-undefined-component@errorComponent.tsx
index 3974456ff4d..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/explicit-undefined-component@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/explicit-undefined-component@errorComponent.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "explicit-undefined-component.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/explicit-undefined-component@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/explicit-undefined-component@notFoundComponent.tsx
index 3974456ff4d..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/explicit-undefined-component@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/explicit-undefined-component@notFoundComponent.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "explicit-undefined-component.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component-and-normal-notFound@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component-and-normal-notFound@component.tsx
index 327bc4b8695..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component-and-normal-notFound@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component-and-normal-notFound@component.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "export-default-component-and-normal-notFound.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component-and-normal-notFound@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component-and-normal-notFound@errorComponent.tsx
index 327bc4b8695..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component-and-normal-notFound@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component-and-normal-notFound@errorComponent.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "export-default-component-and-normal-notFound.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component-and-normal-notFound@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component-and-normal-notFound@notFoundComponent.tsx
index 2a52916809f..62cd0a10365 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component-and-normal-notFound@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component-and-normal-notFound@notFoundComponent.tsx
@@ -1,5 +1,4 @@
import React from 'react';
-import { Route } from "export-default-component-and-normal-notFound.tsx";
function NotFoundComponent() {
return
Not Found
;
}
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component@component.tsx
index 5f691824e7c..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component@component.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "export-default-component.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component@errorComponent.tsx
index 5f691824e7c..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component@errorComponent.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "export-default-component.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component@notFoundComponent.tsx
index 5f691824e7c..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/export-default-component@notFoundComponent.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "export-default-component.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/function-declaration@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/function-declaration@errorComponent.tsx
index 3eda0a9227d..5f67a6fff1b 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/function-declaration@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/function-declaration@errorComponent.tsx
@@ -1,2 +1 @@
-import * as React from 'react';
-import { Route } from "function-declaration.tsx";
\ No newline at end of file
+import * as React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/function-declaration@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/function-declaration@notFoundComponent.tsx
index 3eda0a9227d..5f67a6fff1b 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/function-declaration@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/function-declaration@notFoundComponent.tsx
@@ -1,2 +1 @@
-import * as React from 'react';
-import { Route } from "function-declaration.tsx";
\ No newline at end of file
+import * as React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/importAttribute@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/importAttribute@component.tsx
index 4599dd821a1..f34d3c64081 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/importAttribute@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/importAttribute@component.tsx
@@ -1,4 +1,3 @@
import { test } from './test' with { type: 'macro' };
-import { Route } from "importAttribute.tsx";
const SplitComponent = () => test;
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/importAttribute@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/importAttribute@errorComponent.tsx
index 2745b8a2d31..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/importAttribute@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/importAttribute@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "importAttribute.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/importAttribute@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/importAttribute@notFoundComponent.tsx
index 2745b8a2d31..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/importAttribute@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/importAttribute@notFoundComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "importAttribute.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component-destructured-loader@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component-destructured-loader@component.tsx
index f9646411d9d..d21b198c985 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component-destructured-loader@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component-destructured-loader@component.tsx
@@ -1,4 +1,3 @@
import importedComponent from '../../shared/imported';
-import { Route } from "imported-default-component-destructured-loader.tsx";
const SplitComponent = importedComponent;
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component-destructured-loader@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component-destructured-loader@errorComponent.tsx
index ec634683a4b..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component-destructured-loader@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component-destructured-loader@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "imported-default-component-destructured-loader.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component-destructured-loader@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component-destructured-loader@notFoundComponent.tsx
index ec634683a4b..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component-destructured-loader@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component-destructured-loader@notFoundComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "imported-default-component-destructured-loader.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component@component.tsx
index 90bf5678ed8..31ccf07c526 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component@component.tsx
@@ -1,4 +1,3 @@
import ImportedDefaultComponent from '../../shared/imported';
-import { Route } from "imported-default-component.tsx";
const SplitComponent = ImportedDefaultComponent;
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component@errorComponent.tsx
index 0619586a44d..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "imported-default-component.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component@notFoundComponent.tsx
index 0619586a44d..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-default-component@notFoundComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "imported-default-component.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-errorComponent@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-errorComponent@component.tsx
index a1f29146bf0..31ccf07c526 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-errorComponent@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-errorComponent@component.tsx
@@ -1,4 +1,3 @@
import ImportedDefaultComponent from '../../shared/imported';
-import { Route } from "imported-errorComponent.tsx";
const SplitComponent = ImportedDefaultComponent;
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-errorComponent@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-errorComponent@errorComponent.tsx
index 708dd1c2a95..7a8654fb942 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-errorComponent@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-errorComponent@errorComponent.tsx
@@ -1,4 +1,3 @@
import { importedErrorComponent } from '../../shared/imported';
-import { Route } from "imported-errorComponent.tsx";
const SplitErrorComponent = importedErrorComponent;
export { SplitErrorComponent as errorComponent };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-errorComponent@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-errorComponent@notFoundComponent.tsx
index 42ae8aeafe9..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-errorComponent@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-errorComponent@notFoundComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "imported-errorComponent.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-notFoundComponent@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-notFoundComponent@component.tsx
index 97cf458aacd..31ccf07c526 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-notFoundComponent@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-notFoundComponent@component.tsx
@@ -1,4 +1,3 @@
import ImportedDefaultComponent from '../../shared/imported';
-import { Route } from "imported-notFoundComponent.tsx";
const SplitComponent = ImportedDefaultComponent;
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-notFoundComponent@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-notFoundComponent@errorComponent.tsx
index 8aae85019bc..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-notFoundComponent@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-notFoundComponent@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "imported-notFoundComponent.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-notFoundComponent@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-notFoundComponent@notFoundComponent.tsx
index abab8a2c776..c6cfd9797f0 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-notFoundComponent@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-notFoundComponent@notFoundComponent.tsx
@@ -1,4 +1,3 @@
import { importedNotFoundComponent } from '../../shared/imported';
-import { Route } from "imported-notFoundComponent.tsx";
const SplitNotFoundComponent = importedNotFoundComponent;
export { SplitNotFoundComponent as notFoundComponent };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-pendingComponent@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-pendingComponent@component.tsx
index c5646fb9167..31ccf07c526 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-pendingComponent@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-pendingComponent@component.tsx
@@ -1,4 +1,3 @@
import ImportedDefaultComponent from '../../shared/imported';
-import { Route } from "imported-pendingComponent.tsx";
const SplitComponent = ImportedDefaultComponent;
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-pendingComponent@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-pendingComponent@errorComponent.tsx
index 5419dc69c24..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-pendingComponent@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-pendingComponent@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "imported-pendingComponent.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-pendingComponent@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-pendingComponent@notFoundComponent.tsx
index 5419dc69c24..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-pendingComponent@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported-pendingComponent@notFoundComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "imported-pendingComponent.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported@component.tsx
index d94c22f9324..5bc9da8d43b 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported@component.tsx
@@ -1,4 +1,3 @@
import { importedComponent } from '../../shared';
-import { Route } from "imported.tsx";
const SplitComponent = importedComponent;
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported@errorComponent.tsx
index 3918e275fd9..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "imported.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported@notFoundComponent.tsx
index 3918e275fd9..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/imported@notFoundComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "imported.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/inline@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/inline@errorComponent.tsx
index c7b20c31278..4a822161e11 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/inline@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/inline@errorComponent.tsx
@@ -1,4 +1,3 @@
import * as React from 'react';
import { Route } from "inline.tsx";
-Route.addChildren([]);
-import { test } from "inline.tsx";
\ No newline at end of file
+Route.addChildren([]);
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/inline@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/inline@notFoundComponent.tsx
index c7b20c31278..4a822161e11 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/inline@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/inline@notFoundComponent.tsx
@@ -1,4 +1,3 @@
import * as React from 'react';
import { Route } from "inline.tsx";
-Route.addChildren([]);
-import { test } from "inline.tsx";
\ No newline at end of file
+Route.addChildren([]);
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/random-number@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/random-number@errorComponent.tsx
index e1a0daed5be..cdf4d378912 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/random-number@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/random-number@errorComponent.tsx
@@ -10,12 +10,9 @@ import agGridImage from '~/images/ag-grid.png';
import nozzleImage from '~/images/nozzle.png';
import bytesImage from '~/images/bytes.svg';
import bytesUidotdevImage from '~/images/bytes-uidotdev.png';
-import { textColors } from "random-number.tsx";
-import { gradients } from "random-number.tsx";
const courses = [{
name: 'The Official TanStack React Query Course',
cardStyles: `border-t-4 border-red-500 hover:(border-green-500)`,
href: 'https://query.gg/?s=tanstack',
description: `Learn how to build enterprise quality apps with TanStack's React Query the easy way with our brand new course.`
-}];
-import { Route } from "random-number.tsx";
\ No newline at end of file
+}];
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/random-number@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/random-number@notFoundComponent.tsx
index e1a0daed5be..cdf4d378912 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/random-number@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/random-number@notFoundComponent.tsx
@@ -10,12 +10,9 @@ import agGridImage from '~/images/ag-grid.png';
import nozzleImage from '~/images/nozzle.png';
import bytesImage from '~/images/bytes.svg';
import bytesUidotdevImage from '~/images/bytes-uidotdev.png';
-import { textColors } from "random-number.tsx";
-import { gradients } from "random-number.tsx";
const courses = [{
name: 'The Official TanStack React Query Course',
cardStyles: `border-t-4 border-red-500 hover:(border-green-500)`,
href: 'https://query.gg/?s=tanstack',
description: `Learn how to build enterprise quality apps with TanStack's React Query the easy way with our brand new course.`
-}];
-import { Route } from "random-number.tsx";
\ No newline at end of file
+}];
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-component@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-component@component.tsx
index 38b3cf94067..dfef29c9e35 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-component@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-component@component.tsx
@@ -1,5 +1,4 @@
import React from 'react';
-import { Route } from "react-memo-component.tsx";
function Component() {
return
Component
;
}
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-component@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-component@errorComponent.tsx
index e7e5dfc08d3..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-component@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-component@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "react-memo-component.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-component@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-component@notFoundComponent.tsx
index e7e5dfc08d3..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-component@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-component@notFoundComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "react-memo-component.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-imported-component@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-imported-component@component.tsx
index f5547d0303d..540812230eb 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-imported-component@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-imported-component@component.tsx
@@ -1,5 +1,4 @@
import React from 'react';
import { importedComponent } from '../../shared/imported';
-import { Route } from "react-memo-imported-component.tsx";
const SplitComponent = React.memo(importedComponent);
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-imported-component@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-imported-component@errorComponent.tsx
index d88b8022178..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-imported-component@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-imported-component@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "react-memo-imported-component.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-imported-component@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-imported-component@notFoundComponent.tsx
index d88b8022178..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-imported-component@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/react-memo-imported-component@notFoundComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "react-memo-imported-component.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-export-component@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-export-component@component.tsx
index 912181bd1a4..5bb0ab54517 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-export-component@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-export-component@component.tsx
@@ -1,5 +1,3 @@
import * as React from 'react';
-import { Route } from "retain-export-component.tsx";
-import { SIDEBAR_WIDTH } from "retain-export-component.tsx";
const SIDEBAR_MINI_WIDTH = '80px';
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-export-component@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-export-component@errorComponent.tsx
index 912181bd1a4..5bb0ab54517 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-export-component@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-export-component@errorComponent.tsx
@@ -1,5 +1,3 @@
import * as React from 'react';
-import { Route } from "retain-export-component.tsx";
-import { SIDEBAR_WIDTH } from "retain-export-component.tsx";
const SIDEBAR_MINI_WIDTH = '80px';
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-export-component@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-export-component@notFoundComponent.tsx
index 912181bd1a4..5bb0ab54517 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-export-component@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-export-component@notFoundComponent.tsx
@@ -1,5 +1,3 @@
import * as React from 'react';
-import { Route } from "retain-export-component.tsx";
-import { SIDEBAR_WIDTH } from "retain-export-component.tsx";
const SIDEBAR_MINI_WIDTH = '80px';
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-const@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-const@component.tsx
index 1d00e8f2631..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-const@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-const@component.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-const.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-const.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-const.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-const@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-const@errorComponent.tsx
index 1d00e8f2631..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-const@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-const@errorComponent.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-const.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-const.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-const.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-const@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-const@notFoundComponent.tsx
index 1d00e8f2631..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-const@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-const@notFoundComponent.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-const.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-const.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-const.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-function@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-function@component.tsx
index 74c5d64313e..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-function@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-function@component.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-function.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-function.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-function.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-function@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-function@errorComponent.tsx
index 74c5d64313e..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-function@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-function@errorComponent.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-function.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-function.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-function.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-function@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-function@notFoundComponent.tsx
index 74c5d64313e..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-function@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-function@notFoundComponent.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-function.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-function.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-function.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-loader@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-loader@component.tsx
index 2cf1d0894dc..9f54ae0dc57 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-loader@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-loader@component.tsx
@@ -18,9 +18,6 @@ function Layout() {
;
}
-import { Route } from "retain-exports-loader.tsx";
const HEADER_HEIGHT = '63px';
-import { SIDEBAR_WIDTH } from "retain-exports-loader.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-loader.tsx";
const ASIDE_WIDTH = '250px';
export { Layout as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-loader@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-loader@errorComponent.tsx
index 988a358b5d7..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-loader@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-loader@errorComponent.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-loader.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-loader.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-loader.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-loader@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-loader@notFoundComponent.tsx
index 988a358b5d7..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-loader@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-loader@notFoundComponent.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-loader.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-loader.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-loader.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/undefined-literals@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/undefined-literals@component.tsx
index 81364cb80cc..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/undefined-literals@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/undefined-literals@component.tsx
@@ -1 +0,0 @@
-import { Route } from "undefined-literals.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/undefined-literals@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/undefined-literals@errorComponent.tsx
index 81364cb80cc..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/undefined-literals@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/undefined-literals@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "undefined-literals.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/undefined-literals@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/undefined-literals@notFoundComponent.tsx
index 81364cb80cc..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/undefined-literals@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/undefined-literals@notFoundComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "undefined-literals.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/useStateDestructure@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/useStateDestructure@component.tsx
index f4b72ad2a09..97b5481cf5a 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/useStateDestructure@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/useStateDestructure@component.tsx
@@ -1,3 +1,2 @@
import { FaBolt, FaBook, FaCheckCircle, FaCogs } from 'react-icons/fa';
-import { VscPreview, VscWand } from 'react-icons/vsc';
-import { Route } from "useStateDestructure.tsx";
\ No newline at end of file
+import { VscPreview, VscWand } from 'react-icons/vsc';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/useStateDestructure@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/useStateDestructure@errorComponent.tsx
index f4b72ad2a09..97b5481cf5a 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/useStateDestructure@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/useStateDestructure@errorComponent.tsx
@@ -1,3 +1,2 @@
import { FaBolt, FaBook, FaCheckCircle, FaCogs } from 'react-icons/fa';
-import { VscPreview, VscWand } from 'react-icons/vsc';
-import { Route } from "useStateDestructure.tsx";
\ No newline at end of file
+import { VscPreview, VscWand } from 'react-icons/vsc';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/useStateDestructure@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/useStateDestructure@notFoundComponent.tsx
index f4b72ad2a09..97b5481cf5a 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/useStateDestructure@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/useStateDestructure@notFoundComponent.tsx
@@ -1,3 +1,2 @@
import { FaBolt, FaBook, FaCheckCircle, FaCogs } from 'react-icons/fa';
-import { VscPreview, VscWand } from 'react-icons/vsc';
-import { Route } from "useStateDestructure.tsx";
\ No newline at end of file
+import { VscPreview, VscWand } from 'react-icons/vsc';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/using@component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/using@component.tsx
index ac756d42a8f..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/using@component.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/using@component.tsx
@@ -1 +0,0 @@
-import { Route } from "using.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/using@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/using@errorComponent.tsx
index ac756d42a8f..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/using@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/using@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "using.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/using@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/using@notFoundComponent.tsx
index ac756d42a8f..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/using@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/using@notFoundComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "using.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/arrow-function@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/arrow-function@loader.tsx
index e12f6efce67..cb195afdd88 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/arrow-function@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/arrow-function@loader.tsx
@@ -1,5 +1,4 @@
import * as React from 'react';
import { fetchPosts } from '../posts';
-import { Route } from "arrow-function.tsx";
const SplitLoader = fetchPosts;
export { SplitLoader as loader };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/boolean-null-literals@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/boolean-null-literals@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 8ff04083aa2..c49c9e93a31 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/boolean-null-literals@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/boolean-null-literals@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,4 +1,3 @@
// Test errorComponent with false literal
-import { Route } from "boolean-null-literals.tsx";
const SplitComponent = () =>
Test Component
;
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/boolean-null-literals@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/boolean-null-literals@loader.tsx
index 56241c37b36..666ed1e7eca 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/boolean-null-literals@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/boolean-null-literals@loader.tsx
@@ -1,5 +1,4 @@
// Test errorComponent with false literal
-import { Route } from "boolean-null-literals.tsx";
const SplitLoader = async () => ({
data: 'test'
});
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/chinese@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/chinese@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 3b1ae9a0c40..003ca944a17 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/chinese@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/chinese@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,4 @@
import * as React from 'react';
-import { Route } from "chinese.tsx";
function HomeComponent() {
return
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/chinese@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/chinese@loader.tsx
index 3cf6f4a7d61..b4de370f4ea 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/chinese@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/chinese@loader.tsx
@@ -1,5 +1,4 @@
import * as React from 'react';
-import { Route } from "chinese.tsx";
interface DemoProps {
title: string;
}
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-arrow-function@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-arrow-function@component---errorComponent---notFoundComponent---pendingComponent.tsx
index a3304c7eb22..39ace71ebea 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-arrow-function@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-arrow-function@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -16,5 +16,4 @@ function OtherComponent() {
});
return
App component name is {componentName}
;
}
-import { Route } from "circular-reference-arrow-function.tsx";
export { App as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-arrow-function@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-arrow-function@loader.tsx
index 00e8742c346..35412249e4b 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-arrow-function@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-arrow-function@loader.tsx
@@ -15,5 +15,4 @@ function OtherComponent() {
App
});
return
App component name is {componentName}
;
-}
-import { Route } from "circular-reference-arrow-function.tsx";
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-function@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-function@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 325cc0e0561..96a753ad8a6 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-function@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-function@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -16,5 +16,4 @@ function OtherComponent() {
});
return
App component name is {componentName}
;
}
-import { Route } from "circular-reference-function.tsx";
export { App as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-function@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-function@loader.tsx
index fe3e50ad204..b6eb70dc9f5 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-function@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/circular-reference-function@loader.tsx
@@ -15,5 +15,4 @@ function OtherComponent() {
App
});
return
App component name is {componentName}
;
-}
-import { Route } from "circular-reference-function.tsx";
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/conditional-properties@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/conditional-properties@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 02dddb8d13c..aaf3410c698 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/conditional-properties@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/conditional-properties@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,6 +1,5 @@
import { isEnabled } from '@features/feature-flags';
import TrueImport from '@modules/true-component';
import { FalseComponent } from '@modules/false-component';
-import { Route } from "conditional-properties.tsx";
const SplitComponent = isEnabled ? TrueImport.Component : FalseComponent;
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/conditional-properties@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/conditional-properties@loader.tsx
index 6316bef676a..e10f305ddc6 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/conditional-properties@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/conditional-properties@loader.tsx
@@ -1,6 +1,5 @@
import { isEnabled } from '@features/feature-flags';
import TrueImport from '@modules/true-component';
import { falseLoader } from '@modules/false-component';
-import { Route } from "conditional-properties.tsx";
const SplitLoader = isEnabled ? TrueImport.loader : falseLoader;
export { SplitLoader as loader };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/destructured-react-memo-imported-component@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/destructured-react-memo-imported-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 1b0ce3e5b5e..446d55e26bc 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/destructured-react-memo-imported-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/destructured-react-memo-imported-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,4 @@
import { memo } from 'react';
-import { Route } from "destructured-react-memo-imported-component.tsx";
function Component() {
return
Component
;
}
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/destructured-react-memo-imported-component@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/destructured-react-memo-imported-component@loader.tsx
index 328626b9c5a..52e811be532 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/destructured-react-memo-imported-component@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/destructured-react-memo-imported-component@loader.tsx
@@ -1,4 +1,3 @@
import { importedLoader } from '../../shared/imported';
-import { Route } from "destructured-react-memo-imported-component.tsx";
const SplitLoader = importedLoader;
export { SplitLoader as loader };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/explicit-undefined-component@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/explicit-undefined-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 3974456ff4d..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/explicit-undefined-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/explicit-undefined-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "explicit-undefined-component.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/explicit-undefined-component@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/explicit-undefined-component@loader.tsx
index 3974456ff4d..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/explicit-undefined-component@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/explicit-undefined-component@loader.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "explicit-undefined-component.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/export-default-component-and-normal-notFound@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/export-default-component-and-normal-notFound@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 2a52916809f..62cd0a10365 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/export-default-component-and-normal-notFound@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/export-default-component-and-normal-notFound@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,4 @@
import React from 'react';
-import { Route } from "export-default-component-and-normal-notFound.tsx";
function NotFoundComponent() {
return
Not Found
;
}
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/export-default-component-and-normal-notFound@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/export-default-component-and-normal-notFound@loader.tsx
index 327bc4b8695..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/export-default-component-and-normal-notFound@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/export-default-component-and-normal-notFound@loader.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "export-default-component-and-normal-notFound.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/export-default-component@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/export-default-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 5f691824e7c..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/export-default-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/export-default-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "export-default-component.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/export-default-component@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/export-default-component@loader.tsx
index 5f691824e7c..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/export-default-component@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/export-default-component@loader.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "export-default-component.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/function-declaration@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/function-declaration@loader.tsx
index 901d03d8f46..cb195afdd88 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/function-declaration@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/function-declaration@loader.tsx
@@ -1,5 +1,4 @@
import * as React from 'react';
import { fetchPosts } from '../posts';
-import { Route } from "function-declaration.tsx";
const SplitLoader = fetchPosts;
export { SplitLoader as loader };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/importAttribute@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/importAttribute@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 4599dd821a1..f34d3c64081 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/importAttribute@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/importAttribute@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,4 +1,3 @@
import { test } from './test' with { type: 'macro' };
-import { Route } from "importAttribute.tsx";
const SplitComponent = () => test;
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/importAttribute@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/importAttribute@loader.tsx
index 2745b8a2d31..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/importAttribute@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/importAttribute@loader.tsx
@@ -1 +0,0 @@
-import { Route } from "importAttribute.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-default-component-destructured-loader@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-default-component-destructured-loader@component---errorComponent---notFoundComponent---pendingComponent.tsx
index f9646411d9d..d21b198c985 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-default-component-destructured-loader@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-default-component-destructured-loader@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,4 +1,3 @@
import importedComponent from '../../shared/imported';
-import { Route } from "imported-default-component-destructured-loader.tsx";
const SplitComponent = importedComponent;
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-default-component-destructured-loader@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-default-component-destructured-loader@loader.tsx
index be744189522..52e811be532 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-default-component-destructured-loader@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-default-component-destructured-loader@loader.tsx
@@ -1,4 +1,3 @@
import { importedLoader } from '../../shared/imported';
-import { Route } from "imported-default-component-destructured-loader.tsx";
const SplitLoader = importedLoader;
export { SplitLoader as loader };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-default-component@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-default-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 90bf5678ed8..31ccf07c526 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-default-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-default-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,4 +1,3 @@
import ImportedDefaultComponent from '../../shared/imported';
-import { Route } from "imported-default-component.tsx";
const SplitComponent = ImportedDefaultComponent;
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-default-component@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-default-component@loader.tsx
index 0619586a44d..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-default-component@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-default-component@loader.tsx
@@ -1 +0,0 @@
-import { Route } from "imported-default-component.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-errorComponent@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-errorComponent@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 10ae74f7413..d8a0fcf9ff7 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-errorComponent@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-errorComponent@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,4 @@
import ImportedDefaultComponent, { importedErrorComponent } from '../../shared/imported';
-import { Route } from "imported-errorComponent.tsx";
const SplitComponent = ImportedDefaultComponent;
export { SplitComponent as component };
const SplitErrorComponent = importedErrorComponent;
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-errorComponent@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-errorComponent@loader.tsx
index 42ae8aeafe9..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-errorComponent@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-errorComponent@loader.tsx
@@ -1 +0,0 @@
-import { Route } from "imported-errorComponent.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-notFoundComponent@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-notFoundComponent@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 20323e766b7..1273c7c50d5 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-notFoundComponent@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-notFoundComponent@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,4 @@
import ImportedDefaultComponent, { importedNotFoundComponent } from '../../shared/imported';
-import { Route } from "imported-notFoundComponent.tsx";
const SplitComponent = ImportedDefaultComponent;
export { SplitComponent as component };
const SplitNotFoundComponent = importedNotFoundComponent;
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-notFoundComponent@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-notFoundComponent@loader.tsx
index 8aae85019bc..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-notFoundComponent@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-notFoundComponent@loader.tsx
@@ -1 +0,0 @@
-import { Route } from "imported-notFoundComponent.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-pendingComponent@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-pendingComponent@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 47d34294ca8..0368000afae 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-pendingComponent@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-pendingComponent@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,4 @@
import ImportedDefaultComponent, { importedPendingComponent } from '../../shared/imported';
-import { Route } from "imported-pendingComponent.tsx";
const SplitComponent = ImportedDefaultComponent;
export { SplitComponent as component };
const SplitPendingComponent = importedPendingComponent;
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-pendingComponent@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-pendingComponent@loader.tsx
index 5419dc69c24..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-pendingComponent@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported-pendingComponent@loader.tsx
@@ -1 +0,0 @@
-import { Route } from "imported-pendingComponent.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported@component---errorComponent---notFoundComponent---pendingComponent.tsx
index d94c22f9324..5bc9da8d43b 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,4 +1,3 @@
import { importedComponent } from '../../shared';
-import { Route } from "imported.tsx";
const SplitComponent = importedComponent;
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported@loader.tsx
index 7075ff8efb5..9b91fafd916 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/imported@loader.tsx
@@ -1,4 +1,3 @@
import { importedLoader } from '../../shared';
-import { Route } from "imported.tsx";
const SplitLoader = importedLoader;
export { SplitLoader as loader };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/inline@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/inline@loader.tsx
index c7b20c31278..4a822161e11 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/inline@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/inline@loader.tsx
@@ -1,4 +1,3 @@
import * as React from 'react';
import { Route } from "inline.tsx";
-Route.addChildren([]);
-import { test } from "inline.tsx";
\ No newline at end of file
+Route.addChildren([]);
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/random-number@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/random-number@loader.tsx
index 3ffd8ba006a..9f854acfb07 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/random-number@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/random-number@loader.tsx
@@ -11,15 +11,12 @@ import agGridImage from '~/images/ag-grid.png';
import nozzleImage from '~/images/nozzle.png';
import bytesImage from '~/images/bytes.svg';
import bytesUidotdevImage from '~/images/bytes-uidotdev.png';
-import { textColors } from "random-number.tsx";
-import { gradients } from "random-number.tsx";
const courses = [{
name: 'The Official TanStack React Query Course',
cardStyles: `border-t-4 border-red-500 hover:(border-green-500)`,
href: 'https://query.gg/?s=tanstack',
description: `Learn how to build enterprise quality apps with TanStack's React Query the easy way with our brand new course.`
}];
-import { Route } from "random-number.tsx";
const SplitLoader = () => {
return {
randomNumber: Math.random(),
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/react-memo-component@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/react-memo-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 38b3cf94067..dfef29c9e35 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/react-memo-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/react-memo-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,4 @@
import React from 'react';
-import { Route } from "react-memo-component.tsx";
function Component() {
return
Component
;
}
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/react-memo-component@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/react-memo-component@loader.tsx
index 25be8fd76e3..52e811be532 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/react-memo-component@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/react-memo-component@loader.tsx
@@ -1,4 +1,3 @@
import { importedLoader } from '../../shared/imported';
-import { Route } from "react-memo-component.tsx";
const SplitLoader = importedLoader;
export { SplitLoader as loader };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/react-memo-imported-component@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/react-memo-imported-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
index f5547d0303d..540812230eb 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/react-memo-imported-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/react-memo-imported-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,4 @@
import React from 'react';
import { importedComponent } from '../../shared/imported';
-import { Route } from "react-memo-imported-component.tsx";
const SplitComponent = React.memo(importedComponent);
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/react-memo-imported-component@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/react-memo-imported-component@loader.tsx
index 16c58ea242a..52e811be532 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/react-memo-imported-component@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/react-memo-imported-component@loader.tsx
@@ -1,4 +1,3 @@
import { importedLoader } from '../../shared/imported';
-import { Route } from "react-memo-imported-component.tsx";
const SplitLoader = importedLoader;
export { SplitLoader as loader };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-export-component@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-export-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 912181bd1a4..5bb0ab54517 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-export-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-export-component@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,3 @@
import * as React from 'react';
-import { Route } from "retain-export-component.tsx";
-import { SIDEBAR_WIDTH } from "retain-export-component.tsx";
const SIDEBAR_MINI_WIDTH = '80px';
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-export-component@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-export-component@loader.tsx
index c418c2fa576..9787e27ad7f 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-export-component@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-export-component@loader.tsx
@@ -1,7 +1,5 @@
import * as React from 'react';
import { importedLoader } from '../../shared/imported';
-import { Route } from "retain-export-component.tsx";
-import { SIDEBAR_WIDTH } from "retain-export-component.tsx";
const SIDEBAR_MINI_WIDTH = '80px';
const ASIDE_WIDTH = '250px';
const SplitLoader = importedLoader;
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-const@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-const@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 1d00e8f2631..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-const@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-const@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-const.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-const.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-const.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-const@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-const@loader.tsx
index 1d00e8f2631..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-const@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-const@loader.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-const.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-const.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-const.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-function@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-function@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 74c5d64313e..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-function@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-function@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-function.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-function.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-function.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-function@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-function@loader.tsx
index 74c5d64313e..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-function@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-function@loader.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-function.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-function.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-function.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-loader@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-loader@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 2cf1d0894dc..9f54ae0dc57 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-loader@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-loader@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -18,9 +18,6 @@ function Layout() {
;
}
-import { Route } from "retain-exports-loader.tsx";
const HEADER_HEIGHT = '63px';
-import { SIDEBAR_WIDTH } from "retain-exports-loader.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-loader.tsx";
const ASIDE_WIDTH = '250px';
export { Layout as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-loader@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-loader@loader.tsx
index 988a358b5d7..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-loader@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/retain-exports-loader@loader.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-loader.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-loader.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-loader.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/undefined-literals@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/undefined-literals@component---errorComponent---notFoundComponent---pendingComponent.tsx
index 81364cb80cc..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/undefined-literals@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/undefined-literals@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "undefined-literals.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/undefined-literals@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/undefined-literals@loader.tsx
index 81364cb80cc..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/undefined-literals@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/undefined-literals@loader.tsx
@@ -1 +0,0 @@
-import { Route } from "undefined-literals.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/useStateDestructure@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/useStateDestructure@component---errorComponent---notFoundComponent---pendingComponent.tsx
index f4b72ad2a09..97b5481cf5a 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/useStateDestructure@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/useStateDestructure@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1,3 +1,2 @@
import { FaBolt, FaBook, FaCheckCircle, FaCogs } from 'react-icons/fa';
-import { VscPreview, VscWand } from 'react-icons/vsc';
-import { Route } from "useStateDestructure.tsx";
\ No newline at end of file
+import { VscPreview, VscWand } from 'react-icons/vsc';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/useStateDestructure@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/useStateDestructure@loader.tsx
index f4b72ad2a09..97b5481cf5a 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/useStateDestructure@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/useStateDestructure@loader.tsx
@@ -1,3 +1,2 @@
import { FaBolt, FaBook, FaCheckCircle, FaCogs } from 'react-icons/fa';
-import { VscPreview, VscWand } from 'react-icons/vsc';
-import { Route } from "useStateDestructure.tsx";
\ No newline at end of file
+import { VscPreview, VscWand } from 'react-icons/vsc';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/using@component---errorComponent---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/using@component---errorComponent---notFoundComponent---pendingComponent.tsx
index ac756d42a8f..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/using@component---errorComponent---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/using@component---errorComponent---notFoundComponent---pendingComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "using.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/using@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/using@loader.tsx
index ae4bc0c74c2..7e4f4fde9b9 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/using@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/using@loader.tsx
@@ -6,7 +6,6 @@ const DummyPostResource = (postId: string) => ({
},
[Symbol.dispose]: () => console.log('disposing!')
});
-import { Route } from "using.tsx";
const SplitLoader = ({
params: {
postId
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/arrow-function@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/arrow-function@errorComponent.tsx
index b75acfb436c..5f67a6fff1b 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/arrow-function@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/arrow-function@errorComponent.tsx
@@ -1,2 +1 @@
-import * as React from 'react';
-import { Route } from "arrow-function.tsx";
\ No newline at end of file
+import * as React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/boolean-null-literals@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/boolean-null-literals@component---loader---notFoundComponent---pendingComponent.tsx
index 0462827cc9c..40973b03281 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/boolean-null-literals@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/boolean-null-literals@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,4 @@
// Test errorComponent with false literal
-import { Route } from "boolean-null-literals.tsx";
const SplitLoader = async () => ({
data: 'test'
});
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/boolean-null-literals@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/boolean-null-literals@errorComponent.tsx
index 866123caaef..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/boolean-null-literals@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/boolean-null-literals@errorComponent.tsx
@@ -1,2 +0,0 @@
-// Test errorComponent with false literal
-import { Route } from "boolean-null-literals.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/chinese@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/chinese@component---loader---notFoundComponent---pendingComponent.tsx
index 3b1ae9a0c40..003ca944a17 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/chinese@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/chinese@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,4 @@
import * as React from 'react';
-import { Route } from "chinese.tsx";
function HomeComponent() {
return
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/chinese@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/chinese@errorComponent.tsx
index 3cf6f4a7d61..b4de370f4ea 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/chinese@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/chinese@errorComponent.tsx
@@ -1,5 +1,4 @@
import * as React from 'react';
-import { Route } from "chinese.tsx";
interface DemoProps {
title: string;
}
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-arrow-function@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-arrow-function@component---loader---notFoundComponent---pendingComponent.tsx
index a3304c7eb22..39ace71ebea 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-arrow-function@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-arrow-function@component---loader---notFoundComponent---pendingComponent.tsx
@@ -16,5 +16,4 @@ function OtherComponent() {
});
return
App component name is {componentName}
;
}
-import { Route } from "circular-reference-arrow-function.tsx";
export { App as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-arrow-function@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-arrow-function@errorComponent.tsx
index 00e8742c346..35412249e4b 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-arrow-function@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-arrow-function@errorComponent.tsx
@@ -15,5 +15,4 @@ function OtherComponent() {
App
});
return
App component name is {componentName}
;
-}
-import { Route } from "circular-reference-arrow-function.tsx";
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-function@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-function@component---loader---notFoundComponent---pendingComponent.tsx
index 325cc0e0561..96a753ad8a6 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-function@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-function@component---loader---notFoundComponent---pendingComponent.tsx
@@ -16,5 +16,4 @@ function OtherComponent() {
});
return
App component name is {componentName}
;
}
-import { Route } from "circular-reference-function.tsx";
export { App as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-function@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-function@errorComponent.tsx
index fe3e50ad204..b6eb70dc9f5 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-function@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/circular-reference-function@errorComponent.tsx
@@ -15,5 +15,4 @@ function OtherComponent() {
App
});
return
App component name is {componentName}
;
-}
-import { Route } from "circular-reference-function.tsx";
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/conditional-properties@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/conditional-properties@component---loader---notFoundComponent---pendingComponent.tsx
index 569ca9d52c6..857b130de76 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/conditional-properties@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/conditional-properties@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,7 +1,6 @@
import { isEnabled } from '@features/feature-flags';
import TrueImport from '@modules/true-component';
import { FalseComponent, falseLoader } from '@modules/false-component';
-import { Route } from "conditional-properties.tsx";
const SplitLoader = isEnabled ? TrueImport.loader : falseLoader;
export { SplitLoader as loader };
const SplitComponent = isEnabled ? TrueImport.Component : FalseComponent;
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/conditional-properties@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/conditional-properties@errorComponent.tsx
index bf6f4765048..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/conditional-properties@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/conditional-properties@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "conditional-properties.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/destructured-react-memo-imported-component@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/destructured-react-memo-imported-component@component---loader---notFoundComponent---pendingComponent.tsx
index 62bd0c53f60..931bed75b4f 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/destructured-react-memo-imported-component@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/destructured-react-memo-imported-component@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,6 +1,5 @@
import { memo } from 'react';
import { importedLoader } from '../../shared/imported';
-import { Route } from "destructured-react-memo-imported-component.tsx";
function Component() {
return
Component
;
}
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/destructured-react-memo-imported-component@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/destructured-react-memo-imported-component@errorComponent.tsx
index ddd3c054455..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/destructured-react-memo-imported-component@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/destructured-react-memo-imported-component@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "destructured-react-memo-imported-component.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/explicit-undefined-component@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/explicit-undefined-component@component---loader---notFoundComponent---pendingComponent.tsx
index 3974456ff4d..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/explicit-undefined-component@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/explicit-undefined-component@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "explicit-undefined-component.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/explicit-undefined-component@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/explicit-undefined-component@errorComponent.tsx
index 3974456ff4d..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/explicit-undefined-component@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/explicit-undefined-component@errorComponent.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "explicit-undefined-component.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/export-default-component-and-normal-notFound@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/export-default-component-and-normal-notFound@component---loader---notFoundComponent---pendingComponent.tsx
index 2a52916809f..62cd0a10365 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/export-default-component-and-normal-notFound@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/export-default-component-and-normal-notFound@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,4 @@
import React from 'react';
-import { Route } from "export-default-component-and-normal-notFound.tsx";
function NotFoundComponent() {
return
Not Found
;
}
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/export-default-component-and-normal-notFound@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/export-default-component-and-normal-notFound@errorComponent.tsx
index 327bc4b8695..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/export-default-component-and-normal-notFound@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/export-default-component-and-normal-notFound@errorComponent.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "export-default-component-and-normal-notFound.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/export-default-component@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/export-default-component@component---loader---notFoundComponent---pendingComponent.tsx
index 5f691824e7c..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/export-default-component@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/export-default-component@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "export-default-component.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/export-default-component@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/export-default-component@errorComponent.tsx
index 5f691824e7c..b01f5e78639 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/export-default-component@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/export-default-component@errorComponent.tsx
@@ -1,2 +1 @@
-import React from 'react';
-import { Route } from "export-default-component.tsx";
\ No newline at end of file
+import React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/function-declaration@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/function-declaration@errorComponent.tsx
index 3eda0a9227d..5f67a6fff1b 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/function-declaration@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/function-declaration@errorComponent.tsx
@@ -1,2 +1 @@
-import * as React from 'react';
-import { Route } from "function-declaration.tsx";
\ No newline at end of file
+import * as React from 'react';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/importAttribute@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/importAttribute@component---loader---notFoundComponent---pendingComponent.tsx
index 4599dd821a1..f34d3c64081 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/importAttribute@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/importAttribute@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,4 +1,3 @@
import { test } from './test' with { type: 'macro' };
-import { Route } from "importAttribute.tsx";
const SplitComponent = () => test;
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/importAttribute@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/importAttribute@errorComponent.tsx
index 2745b8a2d31..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/importAttribute@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/importAttribute@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "importAttribute.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-default-component-destructured-loader@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-default-component-destructured-loader@component---loader---notFoundComponent---pendingComponent.tsx
index 078982b2a31..d4fc40141e5 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-default-component-destructured-loader@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-default-component-destructured-loader@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,4 @@
import importedComponent, { importedLoader } from '../../shared/imported';
-import { Route } from "imported-default-component-destructured-loader.tsx";
const SplitLoader = importedLoader;
export { SplitLoader as loader };
const SplitComponent = importedComponent;
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-default-component-destructured-loader@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-default-component-destructured-loader@errorComponent.tsx
index ec634683a4b..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-default-component-destructured-loader@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-default-component-destructured-loader@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "imported-default-component-destructured-loader.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-default-component@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-default-component@component---loader---notFoundComponent---pendingComponent.tsx
index 90bf5678ed8..31ccf07c526 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-default-component@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-default-component@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,4 +1,3 @@
import ImportedDefaultComponent from '../../shared/imported';
-import { Route } from "imported-default-component.tsx";
const SplitComponent = ImportedDefaultComponent;
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-default-component@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-default-component@errorComponent.tsx
index 0619586a44d..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-default-component@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-default-component@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "imported-default-component.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-errorComponent@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-errorComponent@component---loader---notFoundComponent---pendingComponent.tsx
index a1f29146bf0..31ccf07c526 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-errorComponent@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-errorComponent@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,4 +1,3 @@
import ImportedDefaultComponent from '../../shared/imported';
-import { Route } from "imported-errorComponent.tsx";
const SplitComponent = ImportedDefaultComponent;
export { SplitComponent as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-errorComponent@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-errorComponent@errorComponent.tsx
index 708dd1c2a95..7a8654fb942 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-errorComponent@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-errorComponent@errorComponent.tsx
@@ -1,4 +1,3 @@
import { importedErrorComponent } from '../../shared/imported';
-import { Route } from "imported-errorComponent.tsx";
const SplitErrorComponent = importedErrorComponent;
export { SplitErrorComponent as errorComponent };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-notFoundComponent@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-notFoundComponent@component---loader---notFoundComponent---pendingComponent.tsx
index 20323e766b7..1273c7c50d5 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-notFoundComponent@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-notFoundComponent@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,4 @@
import ImportedDefaultComponent, { importedNotFoundComponent } from '../../shared/imported';
-import { Route } from "imported-notFoundComponent.tsx";
const SplitComponent = ImportedDefaultComponent;
export { SplitComponent as component };
const SplitNotFoundComponent = importedNotFoundComponent;
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-notFoundComponent@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-notFoundComponent@errorComponent.tsx
index 8aae85019bc..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-notFoundComponent@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-notFoundComponent@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "imported-notFoundComponent.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-pendingComponent@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-pendingComponent@component---loader---notFoundComponent---pendingComponent.tsx
index 47d34294ca8..0368000afae 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-pendingComponent@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-pendingComponent@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,4 @@
import ImportedDefaultComponent, { importedPendingComponent } from '../../shared/imported';
-import { Route } from "imported-pendingComponent.tsx";
const SplitComponent = ImportedDefaultComponent;
export { SplitComponent as component };
const SplitPendingComponent = importedPendingComponent;
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-pendingComponent@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-pendingComponent@errorComponent.tsx
index 5419dc69c24..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-pendingComponent@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported-pendingComponent@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "imported-pendingComponent.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported@component---loader---notFoundComponent---pendingComponent.tsx
index f6179b5a575..ecc588688b6 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,4 @@
import { importedComponent, importedLoader } from '../../shared';
-import { Route } from "imported.tsx";
const SplitLoader = importedLoader;
export { SplitLoader as loader };
const SplitComponent = importedComponent;
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported@errorComponent.tsx
index 3918e275fd9..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/imported@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "imported.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/inline@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/inline@errorComponent.tsx
index c7b20c31278..4a822161e11 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/inline@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/inline@errorComponent.tsx
@@ -1,4 +1,3 @@
import * as React from 'react';
import { Route } from "inline.tsx";
-Route.addChildren([]);
-import { test } from "inline.tsx";
\ No newline at end of file
+Route.addChildren([]);
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/random-number@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/random-number@errorComponent.tsx
index e1a0daed5be..cdf4d378912 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/random-number@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/random-number@errorComponent.tsx
@@ -10,12 +10,9 @@ import agGridImage from '~/images/ag-grid.png';
import nozzleImage from '~/images/nozzle.png';
import bytesImage from '~/images/bytes.svg';
import bytesUidotdevImage from '~/images/bytes-uidotdev.png';
-import { textColors } from "random-number.tsx";
-import { gradients } from "random-number.tsx";
const courses = [{
name: 'The Official TanStack React Query Course',
cardStyles: `border-t-4 border-red-500 hover:(border-green-500)`,
href: 'https://query.gg/?s=tanstack',
description: `Learn how to build enterprise quality apps with TanStack's React Query the easy way with our brand new course.`
-}];
-import { Route } from "random-number.tsx";
\ No newline at end of file
+}];
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/react-memo-component@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/react-memo-component@component---loader---notFoundComponent---pendingComponent.tsx
index 273a09fe25f..70d8b0eb42f 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/react-memo-component@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/react-memo-component@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,6 +1,5 @@
import React from 'react';
import { importedLoader } from '../../shared/imported';
-import { Route } from "react-memo-component.tsx";
function Component() {
return
Component
;
}
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/react-memo-component@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/react-memo-component@errorComponent.tsx
index e7e5dfc08d3..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/react-memo-component@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/react-memo-component@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "react-memo-component.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/react-memo-imported-component@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/react-memo-imported-component@component---loader---notFoundComponent---pendingComponent.tsx
index c54d5367381..d2671013eff 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/react-memo-imported-component@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/react-memo-imported-component@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,6 +1,5 @@
import React from 'react';
import { importedLoader, importedComponent } from '../../shared/imported';
-import { Route } from "react-memo-imported-component.tsx";
const SplitLoader = importedLoader;
export { SplitLoader as loader };
const SplitComponent = React.memo(importedComponent);
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/react-memo-imported-component@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/react-memo-imported-component@errorComponent.tsx
index d88b8022178..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/react-memo-imported-component@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/react-memo-imported-component@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "react-memo-imported-component.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-export-component@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-export-component@component---loader---notFoundComponent---pendingComponent.tsx
index c418c2fa576..9787e27ad7f 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-export-component@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-export-component@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,7 +1,5 @@
import * as React from 'react';
import { importedLoader } from '../../shared/imported';
-import { Route } from "retain-export-component.tsx";
-import { SIDEBAR_WIDTH } from "retain-export-component.tsx";
const SIDEBAR_MINI_WIDTH = '80px';
const ASIDE_WIDTH = '250px';
const SplitLoader = importedLoader;
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-export-component@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-export-component@errorComponent.tsx
index 912181bd1a4..5bb0ab54517 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-export-component@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-export-component@errorComponent.tsx
@@ -1,5 +1,3 @@
import * as React from 'react';
-import { Route } from "retain-export-component.tsx";
-import { SIDEBAR_WIDTH } from "retain-export-component.tsx";
const SIDEBAR_MINI_WIDTH = '80px';
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-const@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-const@component---loader---notFoundComponent---pendingComponent.tsx
index 1d00e8f2631..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-const@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-const@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-const.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-const.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-const.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-const@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-const@errorComponent.tsx
index 1d00e8f2631..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-const@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-const@errorComponent.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-const.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-const.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-const.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-function@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-function@component---loader---notFoundComponent---pendingComponent.tsx
index 74c5d64313e..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-function@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-function@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-function.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-function.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-function.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-function@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-function@errorComponent.tsx
index 74c5d64313e..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-function@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-function@errorComponent.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-function.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-function.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-function.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-loader@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-loader@component---loader---notFoundComponent---pendingComponent.tsx
index 2cf1d0894dc..9f54ae0dc57 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-loader@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-loader@component---loader---notFoundComponent---pendingComponent.tsx
@@ -18,9 +18,6 @@ function Layout() {
;
}
-import { Route } from "retain-exports-loader.tsx";
const HEADER_HEIGHT = '63px';
-import { SIDEBAR_WIDTH } from "retain-exports-loader.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-loader.tsx";
const ASIDE_WIDTH = '250px';
export { Layout as component };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-loader@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-loader@errorComponent.tsx
index 988a358b5d7..168ba78680d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-loader@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/retain-exports-loader@errorComponent.tsx
@@ -1,5 +1,2 @@
import * as React from 'react';
-import { Route } from "retain-exports-loader.tsx";
-import { SIDEBAR_WIDTH } from "retain-exports-loader.tsx";
-import { SIDEBAR_MINI_WIDTH } from "retain-exports-loader.tsx";
const ASIDE_WIDTH = '250px';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/undefined-literals@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/undefined-literals@component---loader---notFoundComponent---pendingComponent.tsx
index 81364cb80cc..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/undefined-literals@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/undefined-literals@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "undefined-literals.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/undefined-literals@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/undefined-literals@errorComponent.tsx
index 81364cb80cc..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/undefined-literals@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/undefined-literals@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "undefined-literals.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/useStateDestructure@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/useStateDestructure@component---loader---notFoundComponent---pendingComponent.tsx
index f4b72ad2a09..97b5481cf5a 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/useStateDestructure@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/useStateDestructure@component---loader---notFoundComponent---pendingComponent.tsx
@@ -1,3 +1,2 @@
import { FaBolt, FaBook, FaCheckCircle, FaCogs } from 'react-icons/fa';
-import { VscPreview, VscWand } from 'react-icons/vsc';
-import { Route } from "useStateDestructure.tsx";
\ No newline at end of file
+import { VscPreview, VscWand } from 'react-icons/vsc';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/useStateDestructure@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/useStateDestructure@errorComponent.tsx
index f4b72ad2a09..97b5481cf5a 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/useStateDestructure@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/useStateDestructure@errorComponent.tsx
@@ -1,3 +1,2 @@
import { FaBolt, FaBook, FaCheckCircle, FaCogs } from 'react-icons/fa';
-import { VscPreview, VscWand } from 'react-icons/vsc';
-import { Route } from "useStateDestructure.tsx";
\ No newline at end of file
+import { VscPreview, VscWand } from 'react-icons/vsc';
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/using@component---loader---notFoundComponent---pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/using@component---loader---notFoundComponent---pendingComponent.tsx
index ae4bc0c74c2..7e4f4fde9b9 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/using@component---loader---notFoundComponent---pendingComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/using@component---loader---notFoundComponent---pendingComponent.tsx
@@ -6,7 +6,6 @@ const DummyPostResource = (postId: string) => ({
},
[Symbol.dispose]: () => console.log('disposing!')
});
-import { Route } from "using.tsx";
const SplitLoader = ({
params: {
postId
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/using@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/using@errorComponent.tsx
index ac756d42a8f..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/using@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/using@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "using.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/solid/1-default/arrow-function@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/solid/1-default/arrow-function@errorComponent.tsx
index 32dee4a059f..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/solid/1-default/arrow-function@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/solid/1-default/arrow-function@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "arrow-function.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/solid/1-default/arrow-function@notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/solid/1-default/arrow-function@notFoundComponent.tsx
index 32dee4a059f..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/solid/1-default/arrow-function@notFoundComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/solid/1-default/arrow-function@notFoundComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "arrow-function.tsx";
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/solid/2-components-combined-loader-separate/arrow-function@loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/solid/2-components-combined-loader-separate/arrow-function@loader.tsx
index b562b87fd16..d9ed4ea7afd 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/solid/2-components-combined-loader-separate/arrow-function@loader.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/solid/2-components-combined-loader-separate/arrow-function@loader.tsx
@@ -1,4 +1,3 @@
import { fetchPosts } from '../posts';
-import { Route } from "arrow-function.tsx";
const SplitLoader = fetchPosts;
export { SplitLoader as loader };
\ No newline at end of file
diff --git a/packages/router-plugin/tests/code-splitter/snapshots/solid/3-all-combined-errorComponent-separate/arrow-function@errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/solid/3-all-combined-errorComponent-separate/arrow-function@errorComponent.tsx
index 32dee4a059f..e69de29bb2d 100644
--- a/packages/router-plugin/tests/code-splitter/snapshots/solid/3-all-combined-errorComponent-separate/arrow-function@errorComponent.tsx
+++ b/packages/router-plugin/tests/code-splitter/snapshots/solid/3-all-combined-errorComponent-separate/arrow-function@errorComponent.tsx
@@ -1 +0,0 @@
-import { Route } from "arrow-function.tsx";
\ No newline at end of file