@sveltejs/kit@1.20.4 and svelte@4.0.0 building component library generates d.ts files with deprecated SvelteComponentTyped #10223
Labels
pkg:svelte-package
Issues related to svelte-package
Milestone
Describe the bug
Upgraded component library package in monorepo to use svelte@4.0.0. It uses @sveltejs/kit@1.20.4 to "bundle" the component library to dist/.
When svelte-package is run, it creates all the files in the dist/ directory as it did with previous versions of svelte including type declarations.
The problem is that these type declarations import the deprecated SvelteComponentTyped like this...
Reproduction
git clone https://github.com/nstuyvesant/carbon-charts.git cd carbon-charts git checkout pr-1554 git pull yarn install yarn build
then look at d.ts files in packages/svelte/dist/.
Logs
No response
System Info
Severity
annoyance
Additional Information
Just seems like svelte-package needs to check the version of svelte and output the type declarations accordingly.
The text was updated successfully, but these errors were encountered: