Check that this is really a bug
Reproduction link
https://unpkg.com/browse/swiper@11.2.5/swiper-element-bundle.mjs
Bug description
I'm not sure if its a mismatched expectation, but when I see -bundle.mjs I assume that means all dependencies are inlined,including local files.
This is how the UMD bundled files work, but the .mjs files do not do this.
Why is this an issue? Well, in Rails importmaps v2 it will not download all files from a package when it downloads the package locally and expects the entrypoint to be fully bundled and to not have relative imports.
Related issue: rails/importmap-rails#235
Expected Behavior
-bundle.mjs should inline all files so its a single file with no imports.
Actual Behavior
-bundle.mjs makes relative import calls breaking any tool that expects the bundled file to be entirely self contained.
Swiper version
11.2.5
Platform/Target and Browser Versions
Browsers
Validations
Would you like to open a PR for this bug?
Check that this is really a bug
Reproduction link
https://unpkg.com/browse/swiper@11.2.5/swiper-element-bundle.mjs
Bug description
I'm not sure if its a mismatched expectation, but when I see
-bundle.mjsI assume that means all dependencies are inlined,including local files.This is how the UMD bundled files work, but the
.mjsfiles do not do this.Why is this an issue? Well, in Rails importmaps v2 it will not download all files from a package when it downloads the package locally and expects the entrypoint to be fully bundled and to not have relative imports.
Related issue: rails/importmap-rails#235
Expected Behavior
-bundle.mjsshould inline all files so its a single file with no imports.Actual Behavior
-bundle.mjsmakes relative import calls breaking any tool that expects the bundled file to be entirely self contained.Swiper version
11.2.5
Platform/Target and Browser Versions
Browsers
Validations
Would you like to open a PR for this bug?