Skip to content

Commit 8898ef9

Browse files
committed
Merge branch 'main' of github.com:anpato/react-router-devtools
2 parents 969d5ae + b9f4351 commit 8898ef9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-router-devtools/src/vite/utils/data-functions-augment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const transform = (ast: ParseResult<Babel.File>, routeId: string) => {
4646
const importedName = specifier.imported.name
4747
const localName = specifier.local.name
4848
// Handle aliased imports where local name is a target export
49-
// e.g., import { partnerCategoryLoader as loader }
49+
// e.g., import { myLoader as loader }
5050
if (ALL_EXPORTS.includes(localName) && !ALL_EXPORTS.includes(importedName)) {
5151
const uniqueName = path.scope.generateUidIdentifier(localName)
5252
imports.push([localName, uniqueName])

packages/react-router-devtools/src/vite/utils/inject-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const transform = (ast: ParseResult<Babel.File>, routeId: string) => {
3636
const importedName = specifier.imported.name
3737
const localName = specifier.local.name
3838
// Handle aliased imports where local name is a target export
39-
// e.g., import { partnerCategoryLoader as loader }
39+
// e.g., import { myLoader as loader }
4040
if (ALL_EXPORTS.includes(localName) && !ALL_EXPORTS.includes(importedName)) {
4141
const uniqueName = path.scope.generateUidIdentifier(localName)
4242
imports.push([localName, uniqueName])

0 commit comments

Comments
 (0)