-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit c4cf359
committed
fix(@angular/build): print Sass
When using the `@warn` directive, the `span` entry in the warning object is often undefined. Instead, the `stack` property is populated.
```js
{
"warnings": [
{
"deprecation": false,
"deprecationType": null,
"span": undefined,
"stack": "projects/foo/src/app/app.component.scss 1:1 root stylesheet\n",
"message": "some message"
}
]
}
```
### Before
```
▲さんかく [WARNING] some message [plugin angular-sass]
```
### Now
```
▲さんかく [WARNING] some message [plugin angular-sass]
projects/foo/src/app/app.component.scss 1:1 root stylesheet
```
Closes: #27726
(cherry picked from commit 4a879a9)@warn
location1 parent acbffd2 commit c4cf359
File tree
1 file changed
+11
-3
lines changed- packages/angular/build/src/tools/esbuild/stylesheets
1 file changed
+11
-3
lines changedLines changed: 11 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 | - | ||
9 | + | ||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 | - | ||
143 | + | ||
144 | + | ||
145 | + | ||
146 | + | ||
147 | + | ||
148 | + | ||
149 | + | ||
150 | + | ||
151 | + | ||
144 | 152 |
| |
145 | 153 |
| |
146 | 154 |
| |
| |||
150 | 158 |
| |
151 | 159 |
| |
152 | 160 |
| |
153 | - | ||
161 | + | ||
154 | 162 |
| |
155 | 163 |
| |
156 | 164 |
| |
|
0 commit comments