Closed patrickhrastnik closed 2 years ago
In case you want to have a look on some suggested changes: https://github.com/HolterDev/bs5-lightbox/tree/change_to_UMD
I definitely agree. I ran into some issues trying to compile using UMD, otherwise I would do just that. I'm considering reworking my build process to implement this.
Currently the project is compiled using
module: "commonjs"
.At @HolterDev we use AMD module resolution for our projects. We cannot include the current version of this project in our products since the project structure is incompatible.
Compiling
bs5-lightbox
with strategyUMD
can increase its compatibility for multiple scenarios.For now we compiled the project manually using
UMD
and included it in our products. I suggest to change to this strategy to make this package as compatible as possible. Alternatively I'd suggest to add a second webpack task to create an AMD/UMD compatible versions of the package.