EMH333 / esbuild-svelte

An esbuild plugin to compile Svelte components
https://www.npmjs.com/package/esbuild-svelte
MIT License
238 stars 22 forks source link

Update compiler, tests and examples to use Svelte 5 #233

Closed Greenheart closed 4 months ago

Greenheart commented 4 months ago

This is based on findings in https://github.com/EMH333/esbuild-svelte/pull/230#pullrequestreview-2064452383.

Updating the main devDependencies in package.json to Svelte 5 and re-building the plugin was what I needed to get my app to build properly with Svelte 5.

Also updated tests to work for Svelte 5, as well as type errors in the plugin (due to changed imports and compiler options) and finally updated examples to show usage with Svelte 5 (since mounting a Svelte component will be a breaking change compared to Svelte 4).

fixes #232

EMH333 commented 4 months ago

Whoops! Could you reopen or create a new PR pointing at main please? I definitely want to use this as a start for the changes coming in v1.0.0