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

fix: align css depth mode to css+js mode #2916

Merged
merged 4 commits into from
Oct 16, 2023
Merged

Conversation

idoros
Copy link
Collaborator

@idoros idoros commented Oct 10, 2023

This PR aligns the depth assignment for stylesheets in CSS-only mode with that of CSS+JS mode.

Previously, prior to this modification, CSS-only mode initiated at a depth level of 0, whereas CSS+JS mode initiated at a depth level of 1. This alteration has been implemented to ensure uniformity and will not impact existing usage. Its primary objective is to facilitate the transition to CSS-only mode as the default setting, thereby minimizing the need for extensive test refactoring.

Additionally, this PR addresses the issue of JS imports for values, formatters, and mixins, preventing them from adding extra depth, as they do not involve CSS overrides.

Furthermore, it prevents a depth increase in the case of circular imports for the stylesheet being calculated, as deeper circular imports are already handled.

@idoros idoros added the core Processing and transforming logic label Oct 10, 2023
@idoros idoros requested a review from barak007 October 10, 2023 12:20
@idoros idoros self-assigned this Oct 10, 2023
@idoros idoros changed the title refactor: align css depth mode to start at 1 fix: align css depth mode to css+js mode Oct 12, 2023
@idoros idoros merged commit 494c723 into master Oct 16, 2023
@idoros idoros deleted the ido/css-depth-mode-align branch October 16, 2023 09:11
idoros added a commit that referenced this pull request Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Processing and transforming logic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants