You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! First of all, thanks for this awesome repo, it showed me how to get started with a server file in TS which is exactly what I needed 🙏
I need to create a loader context and fetch a few things, such as the locale and user for that context. This is simple via the getLoadContext function.
But, in order to resolve locale and user, I need functions which I have available in the bundle built by the remix build command (which end up in build/index.js). Any idea as to the best way how to go about this? When I try to import them from the server.ts file built with esbuild, they are not automatically bundled in and naturally cannot be resolved from the built file at runtime.
The text was updated successfully, but these errors were encountered:
Hi there! First of all, thanks for this awesome repo, it showed me how to get started with a server file in TS which is exactly what I needed 🙏
I need to create a loader context and fetch a few things, such as the
locale
anduser
for that context. This is simple via thegetLoadContext
function.But, in order to resolve
locale
anduser
, I need functions which I have available in the bundle built by theremix build
command (which end up inbuild/index.js
). Any idea as to the best way how to go about this? When I try to import them from theserver.ts
file built withesbuild
, they are not automatically bundled in and naturally cannot be resolved from the built file at runtime.The text was updated successfully, but these errors were encountered: