From 284e97fd81d30221e5af35c4b0dcfbddf644852b Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Mon, 10 Feb 2020 13:29:13 +0100 Subject: [PATCH] add detectStrictMode method for backward-compat --- lib/Parser.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Parser.js b/lib/Parser.js index 721bf3db192..7ef197866c6 100644 --- a/lib/Parser.js +++ b/lib/Parser.js @@ -2061,6 +2061,12 @@ class Parser extends Tapable { this.scope = oldScope; } + + // TODO webpack 5: remove this methods + // only for backward-compat + detectStrictMode(statements) { + this.detectMode(statements); + } detectMode(statements) { const isLiteral =