feat: refactoring project
This commit is contained in:
9
node_modules/webpack/lib/dependencies/ContextDependency.js
generated
vendored
9
node_modules/webpack/lib/dependencies/ContextDependency.js
generated
vendored
@@ -27,7 +27,7 @@ const getCriticalDependencyWarning = memoize(() =>
|
||||
* @param {RegExp | null | undefined} r regexp
|
||||
* @returns {string} stringified regexp
|
||||
*/
|
||||
const regExpToString = r => (r ? r + "" : "");
|
||||
const regExpToString = r => (r ? String(r) : "");
|
||||
|
||||
class ContextDependency extends Dependency {
|
||||
/**
|
||||
@@ -91,7 +91,12 @@ class ContextDependency extends Dependency {
|
||||
this.options.include
|
||||
)} ${regExpToString(this.options.exclude)} ` +
|
||||
`${this.options.mode} ${this.options.chunkName} ` +
|
||||
`${JSON.stringify(this.options.groupOptions)}`
|
||||
`${JSON.stringify(this.options.groupOptions)}` +
|
||||
`${
|
||||
this.options.referencedExports
|
||||
? ` ${JSON.stringify(this.options.referencedExports)}`
|
||||
: ""
|
||||
}`
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user