Commit 579050c
authored
Silence Sass legacy JS API deprecation warning (#178)
## Summary
- Suppress the "The legacy JS API is deprecated and will be removed in
Dart Sass 2.0.0" warning by configuring rollup-plugin-postcss to silence
the `legacy-js-api` deprecation
## Changes
Updated `rollup.config.mjs` to pass `silenceDeprecations:
['legacy-js-api']` to the sass preprocessor in two places:
1. In the preview entry postcss plugin configuration (line 161)
2. In the `postCssPlugin` function (line 361)
This change ports the fix from
mendix/web-widgets#2234 to the widgets-tools
repository.
## Test plan
- [ ] Build passes without sass deprecation warnings
- [ ] Widget builds work correctly with the updated configuration2 files changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
162 | 166 | | |
163 | 167 | | |
164 | 168 | | |
| |||
354 | 358 | | |
355 | 359 | | |
356 | 360 | | |
357 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
358 | 366 | | |
359 | 367 | | |
360 | 368 | | |
0 commit comments