mirror of https://github.com/webpack/webpack.git
Fix typings
This commit is contained in:
parent
bfb9df6c20
commit
29bfa35cc7
|
|
@ -58,7 +58,7 @@ exports.evaluateToIdentifier = (identifier, truthy) => {
|
|||
|
||||
exports.expressionIsUnsupported = (parser, message) => {
|
||||
return function unsupportedExpression(expr) {
|
||||
const dep = new ConstDependency("(void 0)", expr.range, false);
|
||||
const dep = new ConstDependency("(void 0)", expr.range, null);
|
||||
dep.loc = expr.loc;
|
||||
parser.state.current.addDependency(dep);
|
||||
if (!parser.state.module) return;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ class HarmonyTopLevelThisParserPlugin {
|
|||
const module = parser.state.module;
|
||||
const isHarmony = !!(module.buildMeta && module.buildMeta.exportsType);
|
||||
if (isHarmony) {
|
||||
const dep = new ConstDependency("undefined", node.range, false);
|
||||
const dep = new ConstDependency("undefined", node.range, null);
|
||||
dep.loc = node.loc;
|
||||
parser.state.current.addDependency(dep);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue