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
Fix Sass legacy JS API deprecation in webpack build
Warning fixed:
- "The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0." repeated during yarn build.
Approach:
- Upgrade sass-loader from v10 to v13 (Node 16 compatible) and configure sass-loader with api: "modern".
- Add Sass load paths for node_modules so package imports resolve under the modern API.
- Update design-system-react @forward path to its explicit distributed SCSS entrypoint for reliable modern resolution.
Why this approach:
- Removes dependence on the deprecated Sass legacy API instead of suppressing the warning.
- Keeps compatibility with current CI Node runtime while modernizing Sass integration.
Alternatives considered:
- Stay on sass-loader v10 and suppress the legacy API warning: rejected because this leaves deprecated behavior in place.
- Jump to sass-loader v14+: rejected because those versions require newer Node than current CI.
Co-authored-by: Chris Zetter <zetter-rpf@users.noreply.github.com>
0 commit comments