flarelabs-net / vite-environment-providers

1 stars 0 forks source link

remove `fixWindowsWorkerdAbsolutePath` hack and apply refactoring to module fallback logic #9

Closed dario-piotrowicz closed 1 week ago

dario-piotrowicz commented 1 week ago

This PR removes the fixWindowsWorkerdAbsolutePath hack by being more careful of the paths that we receive/return to the workerd module fallback server and adapting them properly based on the current OS

Besides the above I've done some cleanup and externalized all the module resolution logic in its own file (so that we have a cleaner separation of concerns)