You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now every compiled JavaScript entrypoint file contains the full Swiper library code. We now wanted to use bud.bundle('swiper') to extract the library to an own bundle.
When we do this the generated entrypoint.json file results in
Version
4.3.0
What did you expect to happen?
We're using ACF Composer to build our blocks. We create a TypeScript file per block and register it as a bud entrypoint like so:
And inside our Block we use an
assets
method like this:We have multiple blocks using the Swiper library which is imported like:
Right now every compiled JavaScript entrypoint file contains the full Swiper library code. We now wanted to use
bud.bundle('swiper')
to extract the library to an own bundle.When we do this the generated
entrypoint.json
file results inWe expect that every block assets and also the dependencies (
js/bundle/swiper.js
) are enqueued exactly once.What actually happens?
What actually happens now is that the resulting HTML code contains multiple instances of the swiper bundle in the footer:
Steps to reproduce
bud.bundle('swiper')
to create an own bundle for the librarySystem info
No response
Log output
No response
Please confirm this isn't a support request.
Yes
The text was updated successfully, but these errors were encountered: