On this page

class webpack.JsonParser extends Parser

Defines the parser state base type used by this module.

new JsonParser(): JsonParser
Returns:JsonParser
Attributes
parse(source, state): ParserState
Attributes
source:string | Buffer<ArrayBufferLike> | PreparsedAst
Returns:ParserState

Parses the provided source and updates the parser state.