webpack/webpack

export in library works only for last entry module

Open

#15.936 aperta il 9 giu 2022

Vedi su GitHub
 (9 commenti) (1 reazione) (0 assegnatari)JavaScript (9356 fork)batch import
bughelp wantedwebpack-5

Metriche repository

Star
 (65.766 star)
Metriche merge PR
 (Merge medio 1g 5h) (180 PR mergiate in 30 g)

Descrizione

Bug report

export in library works only for last entry module

What is the current behavior?

in webpack config like:

module.exports = {
  entry: ["a", "b", "c"],
  output: {
    library: { type: "global" }
  }
};

only exports from c will be used

If the current behavior is a bug, please provide the steps to reproduce.

https://github.com/TGRHavoc/webpack-mvp

What is the expected behavior? should use all exports

Other relevant information: webpack version: latest Node.js version: Operating System: Additional tools:

Guida contributor