feat: refactoring project
This commit is contained in:
2
node_modules/webpack/lib/dependencies/RequireContextDependencyParserPlugin.js
generated
vendored
2
node_modules/webpack/lib/dependencies/RequireContextDependencyParserPlugin.js
generated
vendored
@@ -56,7 +56,7 @@ module.exports = class RequireContextDependencyParserPlugin {
|
||||
/** @type {Range} */ (expr.range)
|
||||
);
|
||||
dep.loc = /** @type {DependencyLocation} */ (expr.loc);
|
||||
dep.optional = !!parser.scope.inTry;
|
||||
dep.optional = Boolean(parser.scope.inTry);
|
||||
parser.state.current.addDependency(dep);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user