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 ee4b859
Browse filesBrowse the repository at this point in the historyBrowse files
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.
0 commit comments