Commit f429b2c
revert(router-plugin): remove ./ prepending for import specifiers
This reverts the behavior added in cf66184 that prepended './' to all
import specifiers. The change was unnecessary noise that:
1. Modified 209 snapshot files with no functional improvement
2. Was a theoretical fix for bundler resolution that never failed in practice
3. Made the PR diff impossible to review due to noise
Modern bundlers (Vite, Webpack, esbuild, Rspack) all handle bare specifiers
with file extensions (e.g., 'arrow-function.tsx') correctly. The .tsx
extension makes the specifier unambiguous - it's clearly not a package name.
All 406 tests passing before and after this revert confirms the ./ prefix
was unnecessary. If a real bundler issue appears in the future, we can fix
it with evidence of the actual problem.
Simplified functions back to original behavior:
- addSplitSearchParamToFilename: just adds query params, no path manipulation
- removeSplitSearchParamFromFilename: just strips query params, no path manipulation
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 53e9524 commit f429b2c
File tree
210 files changed
+306
-324
lines changed- packages/router-plugin
- src/core/code-splitter
- tests
- add-hmr/snapshots
- react
- solid
- code-splitter/snapshots
- react
- 1-default
- 2-components-combined-loader-separate
- 3-all-combined-errorComponent-separate
- solid
- 1-default
- 2-components-combined-loader-separate
- 3-all-combined-errorComponent-separate
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
210 files changed
+306
-324
lines changedLines changed: 2 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 84 | | |
95 | 85 | | |
96 | 86 | | |
97 | | - | |
| 87 | + | |
98 | 88 | | |
99 | 89 | | |
100 | 90 | | |
101 | 91 | | |
102 | 92 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 93 | + | |
112 | 94 | | |
113 | 95 | | |
114 | 96 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments