Commit ec895fc
Fix react-toastify Sass @import deprecation warnings
Warning fixed:
- "Sass @import rules are deprecated" emitted from "react-toastify/scss/main.scss" during yarn build.
Approach:
- Stop compiling Toastify Sass source and import the packages compiled CSS (react-toastify/dist/ReactToastify.css) instead.
- Remove the upstream SCSS @use from InternalStyles.scss.
Why this approach:
- Preserves Toastify styling behavior while eliminating upstream Sass deprecation output in our build.
- Avoids carrying or maintaining local forks of third-party styles.
Alternatives considered:
- Keep importing SCSS and suppress warnings globally: rejected because it hides actionable deprecations.
- Patch Toastify Sass locally: rejected due to maintenance overhead and divergence from upstream.
Co-authored-by: Chris Zetter <zetter-rpf@users.noreply.github.com>1 parent 2689c94 commit ec895fc
2 files changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
0 commit comments