svelte-lightweight-charts icon indicating copy to clipboard operation
svelte-lightweight-charts copied to clipboard

Sveltekit

Open matthewwwz opened this issue 2 years ago • 4 comments

Will the package work on Sveltekit? Or is it better to wait for the 4.0 version of lightweight-charts?

matthewwwz avatar May 23 '22 19:05 matthewwwz

Works only on the client side without prerendering and SSR. It cannot be imported into the nodejs environment until 4.0 is released. I think you can easily adjust this behavior for particular pages. I was able to run it here https://github.com/trash-and-fire/svelte-lightweight-charts/issues/10#issuecomment-1089064228

trash-and-fire avatar May 23 '22 20:05 trash-and-fire

4.0 brings some breaking changes, so I will also release 2.0 with some breaking changes. I will remove the chart action and redundant code for it. The package should be much lighter.

Another reason I don't really like svelte is marketing. Not lighter bundle and not easier to develop: https://bundlephobia.com/package/[email protected] - svelte wrapper https://bundlephobia.com/package/[email protected] - react wrapper

trash-and-fire avatar May 23 '22 21:05 trash-and-fire

Работает только на стороне клиента без пререндеринга и SSR. Его нельзя импортировать в среду nodejs, пока не будет выпущена версия 4.0. Я думаю, вы можете легко настроить это поведение для конкретных страниц. Я смог запустить его здесь # 10 (комментарий)

Thank you for the detailed answer!

matthewwwz avatar May 24 '22 03:05 matthewwwz

4.0 brings some breaking changes, so I will also release 2.0 with some breaking changes. I will remove the chart action and redundant code for it. The package should be much lighter.

Another reason I don't really like svelte is marketing. Not lighter bundle and not easier to develop: https://bundlephobia.com/package/[email protected] - svelte wrapper https://bundlephobia.com/package/[email protected] - react wrapper

Very cool done in React, I think you would increase the reach of the audience if you released a package for Vue 3

matthewwwz avatar May 24 '22 03:05 matthewwwz