Skip to content

Commit 3b9e128

Browse files
author
Angular Builds
committed
2e43ec6 fix(@schematics/angular): use default import for express
1 parent 18fd4ab commit 3b9e128

File tree

4 files changed

+26
-11
lines changed

4 files changed

+26
-11
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name": "@angular-devkit/build-angular",
3-
"version": "19.1.0-next.0+sha-3a017aa",
3+
"version": "19.1.0-next.0+sha-2e43ec6",
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.3.0",
10-
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#3a017aa",
11-
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#3a017aa",
12-
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#3a017aa",
13-
"@angular/build": "github:angular/angular-build-builds#3a017aa",
10+
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#2e43ec6",
11+
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#2e43ec6",
12+
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#2e43ec6",
13+
"@angular/build": "github:angular/angular-build-builds#2e43ec6",
1414
"@babel/core": "7.26.0",
1515
"@babel/generator": "7.26.2",
1616
"@babel/helper-annotate-as-pure": "7.25.9",
@@ -21,7 +21,7 @@
2121
"@babel/preset-env": "7.26.0",
2222
"@babel/runtime": "7.26.0",
2323
"@discoveryjs/json-ext": "0.6.3",
24-
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#3a017aa",
24+
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#2e43ec6",
2525
"@vitejs/plugin-basic-ssl": "1.1.0",
2626
"ansi-colors": "4.1.3",
2727
"autoprefixer": "10.4.20",
@@ -70,7 +70,7 @@
7070
"@angular/localize": "^19.0.0-next.0",
7171
"@angular/platform-server": "^19.0.0-next.0",
7272
"@angular/service-worker": "^19.0.0-next.0",
73-
"@angular/ssr": "github:angular/angular-ssr-builds#3a017aa",
73+
"@angular/ssr": "github:angular/angular-ssr-builds#2e43ec6",
7474
"@web/test-runner": "^0.19.0",
7575
"browser-sync": "^3.0.2",
7676
"jest": "^29.5.0",
@@ -91,7 +91,7 @@
9191
"@angular/service-worker": {
9292
"optional": true
9393
},
94-
"@angular/ssr": "github:angular/angular-ssr-builds#3a017aa",
94+
"@angular/ssr": "github:angular/angular-ssr-builds#2e43ec6",
9595
"@web/test-runner": {
9696
"optional": true
9797
},

src/builders/server/index.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
2929
__setModuleDefault(result, mod);
3030
return result;
3131
};
32+
var __importDefault = (this && this.__importDefault) || function (mod) {
33+
return (mod && mod.__esModule) ? mod : { "default": mod };
34+
};
3235
Object.defineProperty(exports, "__esModule", { value: true });
3336
exports.execute = execute;
3437
const private_1 = require("@angular/build/private");
@@ -37,6 +40,7 @@ const build_webpack_1 = require("@angular-devkit/build-webpack");
3740
const promises_1 = require("node:fs/promises");
3841
const path = __importStar(require("node:path"));
3942
const rxjs_1 = require("rxjs");
43+
const webpack_1 = __importDefault(require("webpack"));
4044
const configs_1 = require("../../tools/webpack/configs");
4145
const helpers_1 = require("../../tools/webpack/utils/helpers");
4246
const stats_1 = require("../../tools/webpack/utils/stats");
@@ -146,7 +150,18 @@ async function initialize(options, context, webpackConfigurationTransform) {
146150
// We use the platform to determine the JavaScript syntax output.
147151
wco.buildOptions.supportedBrowsers ??= [];
148152
wco.buildOptions.supportedBrowsers.push(...browserslist('maintained node versions'));
149-
return [getPlatformServerExportsConfig(wco), (0, configs_1.getCommonConfig)(wco), (0, configs_1.getStylesConfig)(wco)];
153+
return [
154+
getPlatformServerExportsConfig(wco),
155+
(0, configs_1.getCommonConfig)(wco),
156+
(0, configs_1.getStylesConfig)(wco),
157+
{
158+
plugins: [
159+
new webpack_1.default.DefinePlugin({
160+
'ngServerMode': true,
161+
}),
162+
],
163+
},
164+
];
150165
});
151166
if (options.deleteOutputPath) {
152167
await (0, utils_1.deleteOutputDir)(context.workspaceRoot, originalOutputPath);

src/utils/normalize-cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
1010
exports.normalizeCacheOptions = normalizeCacheOptions;
1111
const node_path_1 = require("node:path");
1212
/** Version placeholder is replaced during the build process with actual package version */
13-
const VERSION = '19.1.0-next.0+sha-3a017aa';
13+
const VERSION = '19.1.0-next.0+sha-2e43ec6';
1414
function hasCacheMetadata(value) {
1515
return (!!value &&
1616
typeof value === 'object' &&

uniqueId

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Fri Nov 15 2024 19:08:44 GMT+0000 (Coordinated Universal Time)
1+
Sat Nov 16 2024 01:29:10 GMT+0000 (Coordinated Universal Time)

0 commit comments

Comments
 (0)