Skip to content

Demultiplex vs. multiplex #1

@jskrzypek

Description

@jskrzypek

(Apologies in advance for the pedantry.)

Not the biggest issue, but as described, this loader uses more of a demultiplex pattern than a multiplex one. Webpack users might be able to find and use your loader more easily if you renamed it to demultiplex-loader.

From Wikipedia (emphasis mine):

"An electronic multiplexer can be considered as a multiple-input, single-output switch, and a demultiplexer as a single-input, multiple-output switch."[3]

Since you read a single resource into multiple loaders and provide the results of each at a separate key in the object returned by the require, you have a single-input, multiple-output pattern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions