Skip to content

Commit

Permalink
add detectStrictMode method for backward-compat
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Feb 10, 2020
1 parent a7a07bc commit 284e97f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Parser.js
Expand Up @@ -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 =
Expand Down

0 comments on commit 284e97f

Please sign in to comment.