Skip to content

Commit

Permalink
fix: fix config import resolving + make passToClient env server-only (f…
Browse files Browse the repository at this point in the history
…ix #1882) (#1886)
  • Loading branch information
brillout authored Sep 20, 2024
1 parent 0db7410 commit a7151a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const configDefinitionsBuiltIn: ConfigDefinitionsBuiltIn = {
env: { server: true, client: true }
},
passToClient: {
env: { server: true, config: true },
env: { server: true },
cumulative: true
},
route: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,10 @@ async function transpileWithEsbuild(
if (debug.isActivated)
debug('onResolved()', { args, resolved, importPathTranspiled, isPointerImport, isExternal })

pointerImports[importPathTranspiled] = isPointerImport
if (isExternal) {
pointerImports[importPathTranspiled] = isPointerImport
return { external: true, path: importPathTranspiled }
} else {
resolved.path = importPathTranspiled
return resolved
}
})
Expand Down

0 comments on commit a7151a1

Please sign in to comment.