Skip to content

Commit a02327a

Browse files
author
Angular Builds
committed
0662048 fix(@angular-devkit/build-angular): ensure empty optimized Sass stylesheets stay empty
1 parent 4746f5a commit a02327a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "@angular-devkit/build-angular",
3-
"version": "17.0.7+sha-eeb5634",
3+
"version": "17.0.7+sha-0662048",
44
"description": "Angular Webpack Build Facade",
55
"main": "src/index.js",
66
"typings": "src/index.d.ts",
77
"builders": "builders.json",
88
"dependencies": {
99
"@ampproject/remapping": "2.2.1",
10-
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#eeb5634",
11-
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#eeb5634",
12-
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#eeb5634",
10+
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#0662048",
11+
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#0662048",
12+
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#0662048",
1313
"@babel/core": "7.23.2",
1414
"@babel/generator": "7.23.0",
1515
"@babel/helper-annotate-as-pure": "7.22.5",
@@ -20,7 +20,7 @@
2020
"@babel/preset-env": "7.23.2",
2121
"@babel/runtime": "7.23.2",
2222
"@discoveryjs/json-ext": "0.5.7",
23-
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#eeb5634",
23+
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#0662048",
2424
"@vitejs/plugin-basic-ssl": "1.0.1",
2525
"ansi-colors": "4.1.3",
2626
"autoprefixer": "10.4.16",

src/tools/esbuild/angular/angular-host.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function createAngularCompilerHost(compilerOptions, hostOptions) {
4040
return null;
4141
}
4242
const result = await hostOptions.transformStylesheet(data, context.containingFile, context.resourceFile ?? undefined);
43-
return result ? { content: result } : null;
43+
return typeof result === 'string' ? { content: result } : null;
4444
};
4545
// Allow the AOT compiler to request the set of changed templates and styles
4646
host.getModifiedResourceFiles = function () {

uniqueId

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Wed Dec 13 2023 14:03:41 GMT+0000 (Coordinated Universal Time)
1+
Wed Dec 13 2023 17:20:34 GMT+0000 (Coordinated Universal Time)

0 commit comments

Comments
 (0)