On this page

class webpack.AssetSourceParser extends Parser

Defines the parser state base type used by this module.

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

Parses the provided source and updates the parser state.