From d178caee5c93ad9ed91dbd082b0f0b5a9b0507aa Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Mon, 27 Mar 2023 21:38:43 +0530 Subject: Refactoring code. Only using hashes for output file names. Using singleton pattern to store the callbacks for observeDOM, and only one MutationObserver. --- config/webpack/utils/shared-modules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/webpack/utils/shared-modules.js') diff --git a/config/webpack/utils/shared-modules.js b/config/webpack/utils/shared-modules.js index f10d4a1..974145f 100644 --- a/config/webpack/utils/shared-modules.js +++ b/config/webpack/utils/shared-modules.js @@ -3,6 +3,6 @@ const fs = require("fs"); const sharedModules = fs.readdirSync(path.resolve(SOURCE_DIR, "shared")) .filter(sharedModule => !sharedModule.endsWith("import-shared.js")) - .map(sharedModule => sharedModule.substring(0, sharedModule.length - 3));4 + .map(sharedModule => sharedModule.substring(0, sharedModule.length - 3)); module.exports = sharedModules; -- cgit v1.2.3