brillout / vite-plugin-server-entry

Handles the server production entry.
8 stars 2 forks source link

fix: resolve config before checking if SSR #2

Closed magne4000 closed 1 year ago

magne4000 commented 1 year ago

Testing SSR before config is resolved by Vite can return wrong values. For example, since version 1.3.1 of SvelteKit, the SSR build process is executed with configFile property, which needs to be resolved in order to have the final build.config.ssr value.

brillout commented 1 year ago

I see, makes sense. Thanks for the PR!

brillout commented 1 year ago

Released as 0.1.4.