JavaScript libraries can also provide an IIFE build.
Maintainers usually reply within 1 day
@Sufiyan-MSA is already working on this.
Since Aug 13, 2026.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- javascript
- Domain
- build-system
Research direction
Start by reviewing Bootstrap v6's current ESM distribution and the build configuration that produces the mentioned dist files. Determine the scope and design for an optional IIFE output, including how it should be named and validated alongside the existing distributions; the issue does not identify specific files or tests.
Written by the indexing model from the issue text.
Description
Prerequisites
- I have searched for duplicate or closed feature requests
- I have read the contributing guidelines
Proposal
JavaScript libraries can also provide an IIFE build.
I noticed the following statement in the Bootstrap v6 documentation:
Bootstrap’s JavaScript is now ESM-only. We no longer ship UMD bundles. All dist files (
bootstrap.js,bootstrap.bundle.js, and their minified versions) are native ES modules. The plugin APIs themselves are unchanged—only how you load and reference them is different.
I understand that Bootstrap v6 is embracing the modern JavaScript ecosystem and that UMD bundles have been removed by design. However, would it be possible to continue providing an IIFE build as an optional distribution?
For example, bootstrap.js could remain the default ESM build, while an additional file such as bootstrap.iife.js or bootstrap.browser.js could be provided for users who prefer loading Bootstrap directly in the browser without modules or a bundler.
From what I understand, this would only require adding an additional build configuration, allowing users to choose the distribution format that best fits their use case while keeping ESM as the primary and recommended format.
Motivation and context
I also noticed that jQuery v4 promotes ESM as the primary format in its README, while still providing multiple distribution formats for users to choose from. Perhaps Bootstrap could take a similar approach by offering an additional IIFE build alongside the ESM distribution.
- Dominant language
- MDX
- Stars
- 175k
- Forks
- 78.7k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 98
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from twbs/bootstrap
-
accessibility css refactoring v6
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
twbs/bootstrap#43333 · 1 reaction ·
Maintainers usually reply within 1 day
-
Select input form caret wrong position on RTL modePossibly taken @adityajai119 claimed this today. Openbug confirmed css has-pr v6
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
twbs/bootstrap#43327 · 3 comments ·
Maintainers usually reply within 1 day
-
v6: OTP input keeps the rest of a selection when you type over itPossibly taken @thejesh23 claimed this 2 days ago. Openbug confirmed has-pr js v6
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
twbs/bootstrap#43323 · 2 comments ·
Maintainers usually reply within 1 day
-
v6: Strength ignores common symbols as special charactersPossibly taken @thejesh23 claimed this 2 days ago. Openbug confirmed docs has-pr js v6
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
twbs/bootstrap#43322 · 1 comment ·
Maintainers usually reply within 1 day
-
v6 alpha - hover-lift effect on menu dropdown only works when mouse is over the buttonPossibly taken @Aryan9891 claimed this 5 days ago. Openbug confirmed css has-pr v6
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
swc-project/swc-ai-issues#164 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JonasKruckenberg/imagetools#973 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
api-platform/core#8835 ·
Maintainers usually reply within 2 days
-
type: dependency-upgrade
Difficulty 2/5 1-3 hours Newbie friendliness 61/100
spring-projects/spring-graphql#1556 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
eclipse-theia/theia#18351 ·
Maintainers usually reply within 2 days