Skip to content

Commit

Permalink
readd code
Browse files Browse the repository at this point in the history
  • Loading branch information
bkrmendy committed Oct 15, 2024
1 parent 45479ee commit 0435e46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/src/components/canvas/remix/remix-utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ function getRemixExportsOfModule(
metadataContext: UiJsxCanvasContextData,
) => {
let resolvedFiles: MapLike<MapLike<any>> = {}
let resolvedFileNames: Array<string> = [filename]

const requireFn = curriedRequireFn(innerProjectContents)
const resolve = curriedResolveFn(innerProjectContents)
Expand All @@ -275,6 +276,8 @@ function getRemixExportsOfModule(
? left<string, string>('Already resolved')
: resolve(importOrigin, toImport)

forEachRight(filePathResolveResult, (filepath) => resolvedFileNames.push(filepath))

const resolvedParseSuccess: Either<string, MapLike<any>> = attemptToResolveParsedComponents(
resolvedFromThisOrigin,
toImport,
Expand Down

0 comments on commit 0435e46

Please sign in to comment.