Skip to content

Commit

Permalink
remove manual bags from FSPs, test system.js bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
VasilyStrelyaev committed Dec 5, 2024
1 parent d461be9 commit 6d26889
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 31 deletions.
7 changes: 0 additions & 7 deletions apps/demos/utils/bundle/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ const prepareConfigs = (framework)=> {
let modulesMap = {};

let main = `devextreme-${framework}/index.js`;
let common = `devextreme-${framework}/common/bag`;
let minify = true;

if (framework === 'angular') {
Expand All @@ -135,8 +134,6 @@ const prepareConfigs = (framework)=> {

const bundlesRoot = 'node_modules/devextreme-angular/bundles';

common = `${bundlesRoot}/devextreme-angular-common.umd.js`;

const componentNames = fs.readdirSync(bundlesRoot)
.filter((fileName) => fileName.indexOf('umd.js') !== -1)
.filter((fileName) => fileName.indexOf('devextreme-angular-ui') === 0)
Expand Down Expand Up @@ -200,10 +197,6 @@ const prepareConfigs = (framework)=> {
main,
);

if (common) {
packages.push(common);
}

return {
builderConfig,
packages: packages.join(' + '),
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme-react/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ gulp.task(NPM_PREPARE_MODULES, (done) => {
return ['', [moduleFileName], moduleFilePath];
});

[...packParamsForFolders, ...packParamsForModules].forEach(
[ ...packParamsForModules, ...packParamsForFolders].forEach(
([folder, moduleFileNames, moduleFilePath]) =>
makeModule(folder, moduleFileNames, moduleFilePath)
);
Expand Down
11 changes: 0 additions & 11 deletions packages/devextreme-react/src/common/bag.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/devextreme-vue/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ gulp.task(NPM_PREPARE_MODULES, (done) => {
return ['', [moduleFileName], moduleFilePath];
});

[...packParamsForFolders, ...packParamsForModules].forEach(
[ ...packParamsForModules, ...packParamsForFolders].forEach(
([folder, moduleFileNames, moduleFilePath]) =>
makeModule(folder, moduleFileNames, moduleFilePath)
);
Expand Down
11 changes: 0 additions & 11 deletions packages/devextreme-vue/src/common/bag.ts

This file was deleted.

0 comments on commit 6d26889

Please sign in to comment.