Skip to content
Source
Sign inSign up
TanStack/router

fix(start-server-core): return 406 instead of 500 for non-HTML Accept headers #7925

Openokxint(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/7925/headopened

Showing 2 changed files with 3 additions and 3 deletions.

x
0 of 2 viewed, 2 left
2 additions and 2 deletionspackages/router-plugin/src/core/code-splitter/compilers.tsModified
View file
@@ -623,7 +623,7 @@
) {
programPath.unshiftContainer('body', [
template.statement(
- `const ${splitNodeMeta.localImporterIdent} = () => import('${splitUrl}')`,
Thread on line 626

this file should not be changed in this PR

+ `const ${splitNodeMeta.localImporterIdent} = () => import('${splitUrl.replace(/'/g, "\\'")}')`,
)(),
@@ -719,7 +719,7 @@
) {
programPath.unshiftContainer('body', [
template.statement(
- `const ${splitNodeMeta.localImporterIdent} = () => import('${splitUrl}')`,
+ `const ${splitNodeMeta.localImporterIdent} = () => import('${splitUrl.replace(/'/g, "\\'")}')`,
)(),