aboutsummaryrefslogtreecommitdiffstats
path: root/config/webpack/utils
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2023-04-04 16:05:48 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2023-04-04 16:05:48 +0530
commit7455c1e81dd18a898004c398a16e9f0b6f7c19ae (patch)
tree364f25f1f55d95131ffbe484cd5836f711d357c0 /config/webpack/utils
parent5f23f07d04073c06af530332c2d75b48d6c023a0 (diff)
downloadbanglar-bhumi-utils-7455c1e81dd18a898004c398a16e9f0b6f7c19ae.tar.gz
banglar-bhumi-utils-7455c1e81dd18a898004c398a16e9f0b6f7c19ae.zip
Keeping track of the number of times that a shared module has been used and dertermining if it is to be included along with the other scripts.
Diffstat (limited to 'config/webpack/utils')
-rw-r--r--config/webpack/utils/shared-modules.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/config/webpack/utils/shared-modules.js b/config/webpack/utils/shared-modules.js
index 974145f..1584f0f 100644
--- a/config/webpack/utils/shared-modules.js
+++ b/config/webpack/utils/shared-modules.js
@@ -1,8 +1,6 @@
const path = require("path");
const fs = require("fs");
-const sharedModules = fs.readdirSync(path.resolve(SOURCE_DIR, "shared"))
+module.exports = fs.readdirSync(path.resolve(SOURCE_DIR, "shared"))
.filter(sharedModule => !sharedModule.endsWith("import-shared.js"))
.map(sharedModule => sharedModule.substring(0, sharedModule.length - 3));
-
-module.exports = sharedModules;