Skip to content

Document NormalModule #3672

@jakearchibald

Description

@jakearchibald

Feature to document

From https://webpack.js.org/api/loaders/:

Resolves the given request to a module, applies all configured loaders and calls back with the generated source, the sourceMap and the module instance (usually an instance of NormalModule). Use this function if you need to know the source code of another module to generate the result.

NormalModule links to the source, but it's difficult to figure out what some of this does, and which parts plugin authors can rely on. module.buildInfo seems very useful, for instance.

I don't know when this feature was introduced.

Author(s)

I don't know who introduced this feature.

Additional information

[ ] I am willing to work on this issue and submit a pull request.

Sorry, I don't really know how it works, so I can't document it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions