Commit 4a879a9
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@warn location1 parent 516ce38 commit 4a879a9
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