angular/packages/compiler/test/shadow_css
Alan Agius 540e643347 fix(compiler): do not remove comments in component styles (#50346)
Prior to this commit, comments in CSS were being removed. This caused inline sourcemaps to break to the shift in lines.

This caused sourcemaps to break in the ESBuild based builder as this always adds comments at the top of the file with the filename.

Example
```css
 /* src/app/app.component.scss */
* {
  color: red;
  background: transparent;
}
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvYXBwLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBOzs7Ozs7Ozs7Q0FBQTtBQVdBO0VBQ0UsVUFBQTtFQUNBLHVCQUFBO0FBREYiLCJzb3VyY2VzQ29udGVudCI6WyIvL01FRElBIFFVRVJZIE1BTkFHRVJcbi8qXG4gIDAgLSA2MDA6IFBob25lXG4gIDYwMCAtIDkwMDogVGFibGV0IHBvcnRyYWl0XG4gIDkwMCAtIDEyMDA6IFRhYmxldCBsYW5kc2NhcGVcbiAgMTIwMCAtIDE4MDA6IE5vcm1hbCBzdHlsZXNcbiAgMTgwMCsgOiBCaWcgRGVza3RvcFxuICAxZW0gPSAxNnB4XG4gIFRoZSBzbWFsbGVyIGRldmljZSBydWxlcyBhbHdheXMgc2hvdWxkIHdyaXRlIGJlbG93IHRoZSBiaWdnZXIgZGV2aWNlIHJ1bGVzXG4gIEZpeGluZyBPcmRlciA9PiBCYXNlICsgVHlwb2dyYXBoeSA+PiBHZW5lcmFsIExheW91dCArIEdyaWQgPj4gUGFnZSBMYXlvdXQgKyBDb21wb25lbnRcbiovXG5cbioge1xuICBjb2xvcjogcmVkO1xuICBiYWNrZ3JvdW5kOiB0cmFuc3BhcmVudDtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0= */
```

Closes #50308

PR Close #50346
2023-06-01 08:45:11 -07:00
..
at_rules_spec.ts refactor(compiler): refactor the shadow css specs (#48443) 2023-01-11 14:55:52 -08:00
host_and_host_context_spec.ts refactor(compiler): refactor the shadow css specs (#48443) 2023-01-11 14:55:52 -08:00
keyframes_spec.ts refactor(compiler): refactor the shadow css specs (#48443) 2023-01-11 14:55:52 -08:00
ng_deep_spec.ts refactor(compiler): refactor the shadow css specs (#48443) 2023-01-11 14:55:52 -08:00
polyfills_spec.ts refactor(compiler): refactor the shadow css specs (#48443) 2023-01-11 14:55:52 -08:00
process_rules_spec.ts refactor(compiler): refactor the shadow css specs (#48443) 2023-01-11 14:55:52 -08:00
repeat_groups_spec.ts refactor(compiler): refactor the shadow css specs (#48443) 2023-01-11 14:55:52 -08:00
shadow_css_spec.ts fix(compiler): do not remove comments in component styles (#50346) 2023-06-01 08:45:11 -07:00
utils.ts refactor(compiler): refactor the shadow css specs (#48443) 2023-01-11 14:55:52 -08:00