Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Misleading README Promise usage #34

@Ovissse

Description

@Ovissse
  • Operating System:
  • Node Version:
  • NPM Version:
  • webpack Version:
  • val-loader Version:

This issue is for a:

  • bug
  • feature request
  • modification request
  • documentation

Return Object Properties

Targeted modules of this loader must export either a Function or Promise that returns an object containing a code property at a minimum, but can contain any number of additional properties.

The part "export either a Function or Promise that" seems misleading.While checking loader source code I noticed that it expects function that returns object code or Promise. As I suspected passing returning promise in module export generates errors

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