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

SCSS source maps ignores deep nesting #767

Open
aTei opened this issue Nov 1, 2022 · 0 comments
Open

SCSS source maps ignores deep nesting #767

aTei opened this issue Nov 1, 2022 · 0 comments

Comments

@aTei
Copy link

aTei commented Nov 1, 2022

Expected behavior

Source maps are generated correctly for deep nesting (import within import). So when I click on the source map link in DevTools It should open related scss file (featured-on.scss).
What I see in DevTools:
image

Actual behavior

It opens "base" file
image

System configuration

  • Sprockets "~> 4.1", ">= 4.1.1"
  • Ruby 3.1

Example

SCSS is bidirectional which makes me use deep nesting. So I have application-ltr.scss and application-rtl.scss. And they are doing import like this

@import 'rtl';
@import 'application/require_all';

require_all.scss looks like this

@import '0_vars';
@import '1_mixins';
@import 'sprite';
@import 'base';
@import 'aggregate-score';
...

config

  config.assets.debug = true
  config.sass.inline_source_maps = true
  config.sass.line_comments = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant