Skip to content

Commit 894f1d6

Browse files
fix build for demos bundles
1 parent a4c6e95 commit 894f1d6

3 files changed

Lines changed: 698 additions & 1294 deletions

File tree

apps/demos/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
"devextreme-vue": "workspace:*"
1616
},
1717
"dependencies": {
18-
"@angular/animations": "~21.1.0",
19-
"@angular-devkit/build-angular": "~21.1.0",
20-
"@angular/cli": "~21.1.5",
21-
"@angular/common": "~21.1.0",
18+
"@angular/animations": "~21.2.9",
19+
"@angular-devkit/build-angular": "~21.2.8",
20+
"@angular/cli": "~21.2.8",
21+
"@angular/common": "~21.2.9",
2222
"@angular/compiler": "~21.2.0",
23-
"@angular/compiler-cli": "~21.1.0",
23+
"@angular/compiler-cli": "~21.2.9",
2424
"@angular/core": "~21.2.4",
25-
"@angular/forms": "~21.1.0",
26-
"@angular/platform-browser": "~21.1.0",
27-
"@angular/platform-browser-dynamic": "~21.1.0",
25+
"@angular/forms": "~21.2.9",
26+
"@angular/platform-browser": "~21.2.9",
27+
"@angular/platform-browser-dynamic": "~21.2.9",
2828
"@aspnet/signalr": "1.0.27",
2929
"@preact/signals-core": "^1.8.0",
3030
"@rollup/plugin-commonjs": "19.0.2",

apps/demos/utils/create-bundles/Angular/update-angular-json.ts

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ const createConfigForDemo = (Demo: Demo) => {
3434
main: `${demoSourcePathRelative}/app/app.component.ts`,
3535
polyfills: join(__dirname, 'polyfill.ts').split('\\').join('/'),
3636
tsConfig: `${demoSourcePathRelative}/tsconfig.json`,
37+
aot: true,
38+
buildOptimizer: false,
39+
optimization: false,
40+
vendorChunk: true,
41+
namedChunks: true,
3742
scripts: [],
3843
allowedCommonJsDependencies: [
3944
'jszip',
@@ -43,24 +48,7 @@ const createConfigForDemo = (Demo: Demo) => {
4348
'devextreme-aspnet-data-nojquery',
4449
],
4550
},
46-
configurations: {
47-
production: {
48-
budgets: [
49-
{
50-
type: 'initial',
51-
maximumWarning: '2mb',
52-
maximumError: '4mb',
53-
},
54-
{
55-
type: 'anyComponentStyle',
56-
maximumWarning: '2kb',
57-
maximumError: '4kb',
58-
},
59-
],
60-
outputHashing: 'all',
61-
},
62-
},
63-
defaultConfiguration: 'production',
51+
configurations: {},
6452
},
6553
},
6654
};

0 commit comments

Comments
 (0)