Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Very slow startup with Svelte/Vite using SCSS #1861

Open
2 tasks done
Sahasrara opened this issue Dec 12, 2023 · 2 comments
Open
2 tasks done

[Bug]: Very slow startup with Svelte/Vite using SCSS #1861

Sahasrara opened this issue Dec 12, 2023 · 2 comments

Comments

@Sahasrara
Copy link
Contributor

Package

carbon-components

Browser

Edge

Package version

10.58.12

React version

N/A

Description

I've been trying to use the SCSS version of the carbon styling based off the suggestion from this documentation that it would be more efficient.

The most performant method to load styles is to import SCSS directly from carbon-components.

I installed carbon components, imported it with:
@import 'carbon-components/scss/globals/scss/styles.scss';

And found that the time it took to load my app went up ~30x.

Reproduction/example

I don't have one right now.

Steps to reproduce

I'm using Tauri:
https://tauri.app/v1/guides/getting-started/setup/sveltekit

And then:
https://svelte.carbondesignsystem.com/

And finally:
https://github.com/carbon-design-system/carbon/blob/v10/docs/guides/sass.md

Then I tried to import:
@import 'carbon-components/scss/globals/scss/styles.scss';

And it the empty app takes a LONG time to become responsive.

Suggested Severity

None

Application/PAL

No response

Code of Conduct

@tay1orjones
Copy link
Member

Yes, the sass builds for carbon-components@v10 are quite slow. It will improve dramatically once carbon-components-svelte ships support for v11 and related packages, @carbon/styles, #1629

@tay1orjones tay1orjones transferred this issue from carbon-design-system/carbon Dec 12, 2023
@Sahasrara
Copy link
Contributor Author

Yes, the sass builds for carbon-components@v10 are quite slow. It will improve dramatically once carbon-components-svelte ships support for v11 and related packages, @carbon/styles, #1629

Ahh, gotcha! So I should just subscribe to that ticket and once it's closed, I can retry importing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants