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

feat(webpack)!: default to css-only depth #2917

Merged
merged 0 commits into from
Oct 16, 2023
Merged

Conversation

idoros
Copy link
Collaborator

@idoros idoros commented Oct 12, 2023

This PR flips the default stylesheet depth resolution mode from CSS+JS to CSS.

In the CSS+JS mode, the system followed the dependency graph into JavaScript/TypeScript files, allowing for easy customization of internal parts without the need for explicit imports within a stylesheet. For instance, a gallery could define a .button class without requiring an import of the Button component, indicating its intent to customize it.

However, this mode has proven to be more complex to understand from a user perspective. Additionally, it is exclusively available ONLY within Stylable's Webpack integration, which poses challenges for Stylable in providing a unified cross-integration behavior.

While we anticipate deprecating this mode in the future, it will remain available for backward compatibility at present.

@idoros idoros added core Processing and transforming logic next-major Issues or PR related to the next major version labels Oct 12, 2023
@idoros idoros requested a review from barak007 October 12, 2023 09:53
@idoros idoros self-assigned this Oct 12, 2023
@idoros idoros merged commit 6f9fa4a into master Oct 16, 2023
@idoros idoros deleted the ido/default-to-css-only-depth branch October 16, 2023 09:26
@idoros idoros restored the ido/default-to-css-only-depth branch October 16, 2023 09:28
@idoros idoros deleted the ido/default-to-css-only-depth branch October 16, 2023 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Processing and transforming logic next-major Issues or PR related to the next major version
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant