dario-piotrowicz / vite-environment-6.0.0-alpha-experimentations

1 stars 1 forks source link

Remix app - `cloudflare` imports do no work #24

Closed dario-piotrowicz closed 2 months ago

dario-piotrowicz commented 3 months ago

In any route in the Remix example app, if we add non-type imports to the remix cloudflare pages such as:

import '@remix-run/cloudflare-pages';

and

import '@remix-run/cloudflare';

the entrypoint initialization fails with errors such as this: Screenshot 2024-08-16 at 16 13 04

( resulting in a broken application: Screenshot 2024-08-16 at 16 13 46 )

This almost for sure means that our module resolution logic (comprised of our use of pluginContainer.resolveId and our vite patch) is flowed and not correctly handing some scenarios

[!NOTE] I did check and such imports do not break standard Remix applications created via C3

dario-piotrowicz commented 3 months ago

[!WARNING] It's very likely worth it tackle https://github.com/dario-piotrowicz/vite-environment-6.0.0-alpha-experimentations/issues/5 first as that would most likely solve this issue anyways