Replies: 1 comment 1 reply
-
I want this feature too, but I don't think just exporting that thing is the right approach just because it happens to already exist. When that was introduced (44bac29), the cloudflare preset was calling it. Now nothing calls it. The cloudflare support was changed from a preset to a separate vite plugin. I'd much rather write plugins: [
remix({
presets: [devContextLoader(whatever)]
})
] or remix({
devContextLoader: whatever
}) than what exporting the function would give you, which is two things which are coupled together, with almost no indication that that's the case setRemixDevLoadContext(whatever);
// ...
plugins: [remix()] |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to suggest to export the
setRemixDevLoadContext()
from the@remix-run/dev
package so it can be used to set the load context during development.The
setRemixDevLoadContext()
is exported here:remix/packages/remix-dev/vite/plugin.ts
Lines 575 to 579 in bbead33
But the
vite/index.ts
doesn't re-export it:remix/packages/remix-dev/vite/index.ts
Lines 4 to 18 in bbead33
Beta Was this translation helpful? Give feedback.
All reactions