Reported in: denoland/deno#23265 (reply in thread)
Our CJS analysis gets confused by code like this:
/***/ "uuid":
/*!***********************!*\
!*** external "uuid" ***!
\***********************/
/***/ ((module) => {
module.exports = require("uuid");
/***/ }),
/***/ "stream":
/*!*************************!*\
!*** external "stream" ***!
\*************************/
/***/ ((module) => {
module.exports = require("stream");
/***/ }),
/***/ "zlib":
/*!***********************!*\
!*** external "zlib" ***!
\***********************/
/***/ ((module) => {
module.exports = require("zlib");
/***/ })
The CJS analysis in this case tells that zlib is a reexport (but not "uuid" or "stream"). I think this is completely wrong as it's not a reexport of the actual file, because it's inside a closure that provides module variable.
Complete file: https://gist.github.com/bartlomieju/a00a74d32947eef6a0811483d8619a0e
Reproduction in Deno:
import * as dicomStream from "@exini/dicom-streams-js";
Reported in: denoland/deno#23265 (reply in thread)
Our CJS analysis gets confused by code like this:
The CJS analysis in this case tells that
zlibis a reexport (but not "uuid" or "stream"). I think this is completely wrong as it's not a reexport of the actual file, because it's inside a closure that providesmodulevariable.Complete file: https://gist.github.com/bartlomieju/a00a74d32947eef6a0811483d8619a0e
Reproduction in Deno: