aboutsummaryrefslogtreecommitdiffstats
path: root/config/webpack/loader/count-imports-loader.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/webpack/loader/count-imports-loader.js')
-rw-r--r--config/webpack/loader/count-imports-loader.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/config/webpack/loader/count-imports-loader.js b/config/webpack/loader/count-imports-loader.js
index 4c3faa4..2586332 100644
--- a/config/webpack/loader/count-imports-loader.js
+++ b/config/webpack/loader/count-imports-loader.js
@@ -1,8 +1,7 @@
-const { ImportManager } = require("import-manager");
+import { ImportManager } from "import-manager";
+import sharedModules from "../utils/shared-modules.js";
-const sharedModules = webpackRequire("utils/shared-modules.js");
-
-module.exports = function(source) {
+export default function(source) {
const { sharedModulesImportedCount } = this.getOptions();
const manager = new ImportManager(source);