From 693158f6a26d6a47b049bfb6db68d69a2cf84684 Mon Sep 17 00:00:00 2001 From: PavithragokulakrishnanSF Date: Thu, 9 Jul 2026 13:48:41 +0530 Subject: [PATCH 1/3] Add new TypeScript type definitions to devDependencies --- package.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d9de2343..f18c32fe 100644 --- a/package.json +++ b/package.json @@ -49,9 +49,13 @@ "devDependencies": { "@syncfusion/ej2-react-notifications": "*", "@types/chai": "^4.3.11", + "@types/codemirror": "^5.60.17", + "@types/crossroads": "^0.0.33", + "@types/hasher": "^0.0.35", "@types/jasmine": "^5.1.4", "@types/jasmine-ajax": "^3.3.5", "@types/mocha": "^10.0.6", + "@types/node": "^14.18.63", "@types/requirejs": "^2.1.37", "aws-sdk": "2.1415.0", "browser-sync": "2.29.3", @@ -119,5 +123,8 @@ "build": "gulp build", "serve": "gulp serve", "test": "gulp test" + }, + "overrides": { + "@types/node": "^14.18.63" } -} \ No newline at end of file +} From 7b18ac5393cd48e885c3d8d502b20f7d5fb39075 Mon Sep 17 00:00:00 2001 From: PavithragokulakrishnanSF Date: Thu, 9 Jul 2026 16:06:52 +0530 Subject: [PATCH 2/3] Enable filesystem caching in webpack config Added filesystem caching to webpack configuration. --- webpack.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 047d69cd..14d1522f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -30,6 +30,13 @@ function getControlWiseBundle() { module.exports = webpackConfig({ mode : 'development', + cache: { + type: 'filesystem', + cacheDirectory: './.webpack_cache', + buildDependencies: { + config: [__filename] + } + }, entry: { 'src/common/index.min': './src/common/index' }, @@ -70,3 +77,4 @@ function webpackConfig(conf) { } return conf; } + From 8b561dc5045b6598c9cf68aec80998de5740e73a Mon Sep 17 00:00:00 2001 From: PavithragokulakrishnanSF Date: Thu, 9 Jul 2026 16:08:39 +0530 Subject: [PATCH 3/3] Refactor tsbundle-new-window task for async execution Refactor tsbundle-new-window task to use async execution and handle errors properly. --- gulpfile.js | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index c12c75c7..5d71a8ae 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -283,11 +283,13 @@ function getSamplePathArray(samplesAr) { } gulp.task('tsbundle-new-window', function (done) { - var code = shelljs.exec('node --max-old-space-size=7168 ./node_modules/gulp/bin/gulp.js tsbundle'); - if (code.code !== 0 || code.stderr) { - process.exit(1); - } - done(); + shelljs.exec('node --max-old-space-size=7168 ./node_modules/gulp/bin/gulp.js tsbundle', {async: true}, function(code) { + if (code !== 0) { + console.error('tsbundle failed with exit code:', code); + process.exit(1); + } + done(); + }); }); gulp.task('tsbundle', function (done) { @@ -297,6 +299,16 @@ gulp.task('tsbundle', function (done) { function bundles(platform, done) { var webpackConfig = require(fs.realpathSync('./webpack.config.js')); + + // Add memory-efficient webpack settings + webpackConfig.cache = { + type: 'filesystem', + cacheDirectory: './.webpack_cache', + buildDependencies: { + config: [__filename] + } + }; + return gulp.src('.') .pipe(webpackGulp(webpackConfig, webpack)) .pipe(gulp.dest('.')) @@ -542,4 +554,4 @@ gulp.task('serve', function(done) { }; bs.init(options, done); }); -}); \ No newline at end of file +});