- Package:
- webpack
- Source:
- node-webpack
- Submitter:
- Yadd
- Date:
- 2022-03-16 13:06:02 UTC
- Severity:
- important
Hi,
in lib/optimize/ConcatenatedModule.js, webpack tries to use
eslint-scope/lib/referencer which is no more authorized in
eslint-scope/package.json#exports.
Here is an untested patch.
Cheers,
Yadd
--- a/lib/optimize/ConcatenatedModule.js
+++ b/lib/optimize/ConcatenatedModule.js
@@ -6,7 +6,7 @@
"use strict";
const eslintScope = require("eslint-scope");
-const Referencer = require("eslint-scope/lib/referencer");
+const Referencer = eslintScope.Referencer;
const {
CachedSource,
ConcatSource,