Repository contains two folders
This makes a webcomponent from the WebComponent.vue
To build component to the dist
folder:
cd make-component
npm i
npm run build
This is a sveltekit application which uses the webcomponent (which has been copied from the above dist folder in src/lib
).
To run in development mode:
cd test-component
npm i
npm run dev
The web component receives the image a a sting with value [object File]
.
Prior to Svelte 5.0, the web component recieved the image as a file, and, when getFile is changed to true, emitted the file thought the change event.
The change is likely to result from a change in Svelte as: