You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 91590d3
Browse filesBrowse the repository at this point in the historyBrowse files
* fix(javascript): preserve strict directive spelling
* fix(javascript): detect strict mode throughout directive prologues
* fix(javascript): read a directive's spelling from an AST that states none
An AST webpack did not parse — a preparsed one, or whatever a custom
`module.parser.javascript.parse` returns — may report a directive as a
plain expression statement, so requiring the optional `directive` field
stopped the prologue scan there and left the module non-strict.
Recover the spelling from the literal itself for those trees: a range
that does not start where the statement does is a parenthesized
expression, and the raw text keeps an escape unexpanded.
---------
Co-authored-by: Alexander Akait <[email protected]>
0 commit comments