You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@import rules should load the import-only file if one exists, instead of the regular file (as is the case for @use and @forward rules).
This behavior is necessary to allow for incremental migration to the Sass module system, as libraries use import-only files to preserve manual member prefixes for @import users while removing them for users who migrate to the module system.
Actual Behavior
@import rules always load the regular file, even if an import-only file exists. The code below works with Dart Sass on its own, but errors when run through sass-loader.
Expected Behavior
@import
rules should load the import-only file if one exists, instead of the regular file (as is the case for@use
and@forward
rules).This behavior is necessary to allow for incremental migration to the Sass module system, as libraries use import-only files to preserve manual member prefixes for
@import
users while removing them for users who migrate to the module system.Actual Behavior
@import
rules always load the regular file, even if an import-only file exists. The code below works with Dart Sass on its own, but errors when run through sass-loader.Code
The text was updated successfully, but these errors were encountered: