Skip to content

Commit 08a8195

Browse files
Disable SystemJs devextreme-angular umd modules optimizations (#29937)
1 parent 1a9f82b commit 08a8195

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

apps/demos/configs/Angular/config.bundle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ function useBundle() {
7070
'devexpress-gantt',
7171
'devexpress-diagram',
7272
'rxjs',
73-
'devextreme/bundles/dx.all',
7473
].forEach((pkg) => delete window.config.map[pkg]);
75-
74+
/*
7675
Object.keys(window.config.map).forEach((pkg) => {
7776
if (pkg.startsWith('devextreme-angular/')) {
7877
delete window.config.map[pkg];
7978
}
8079
});
80+
*/
8181
}
8282
}
8383

apps/demos/configs/Angular/config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ window.config = {
172172
/* devextreme */
173173
'devextreme': 'npm:devextreme/cjs',
174174
'@devextreme/runtime': 'npm:@devextreme/runtime',
175-
'devextreme/bundles/dx.all': 'npm:devextreme/bundles/dx.all.js',
176175
'devextreme-quill': 'npm:devextreme-quill/dist/dx-quill.min.js',
177176
'devexpress-diagram': 'npm:devexpress-diagram',
178177
'devexpress-gantt': 'npm:devexpress-gantt',

apps/demos/utils/internal/create-config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@ class CreateConfig {
4141

4242
baseContent += fs.readFileSync(path.join(this.configDir, approach, 'config.js'), 'utf8');
4343
if (this.useBundles) {
44+
// removes ending non bundle config.js call, config.bundle.js calls its own (single per merged file)
4445
baseContent = baseContent.replace('System.config(window.config);', '');
45-
baseContent = baseContent.replace('System.import(\'@angular/compiler\').catch(console.error.bind(console));', '');
46+
if (approach === 'Angular') {
47+
// removes ending non bundle Angular call, config.bundle.js calls its own (single per merged file)
48+
baseContent = baseContent.replace('System.import(\'@angular/compiler\').catch(console.error.bind(console));', '');
49+
}
4650
baseContent += fs.readFileSync(path.join(this.configDir, approach, 'config.bundle.js'), 'utf8');
4751
}
4852

0 commit comments

Comments
 (0)