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
Copy file name to clipboardExpand all lines: site/src/content/docs/migration.mdx
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,31 @@ Bootstrap 6 is a major release with many breaking changes to modernize our codeb
84
84
- Removed unused `$alert-bg-scale`, `$alert-border-scale`, and `$alert-color-scale` (replaced by theme tokens)
85
85
- Removed unused `$list-group-item-bg-scale` and `$list-group-item-color-scale` (replaced by theme tokens)
86
86
87
+
### JavaScript
88
+
89
+
-**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.
- Data attribute APIs (`data-bs-toggle`, `data-bs-dismiss`, etc.) continue to work automatically with no code changes beyond adding `type="module"` to the script tag.
102
+
- For bundler users (Webpack, Vite, Parcel, etc.), no changes are needed — `import { Tooltip } from 'bootstrap'` works as before and now supports tree shaking.
103
+
- Removed the separate `bootstrap.esm.js` and `bootstrap.esm.min.js` files — `bootstrap.js` is now the ESM entry point.
104
+
- Removed `js/index.umd.js` entry point.
105
+
- Removed jQuery support and the `js-test-jquery` test target.
106
+
- Replaced Popper.js (`@popperjs/core`) with [Floating UI](https://floating-ui.com/) (`@floating-ui/dom`) for dropdown, tooltip, and popover positioning.
107
+
- Added [Vanilla Calendar Pro](https://vanilla-calendar.pro/) (`vanilla-calendar-pro`) as a peer dependency for the new Datepicker component.
108
+
- Removed the `jspm` configuration from `package.json`.
109
+
- Added `"sideEffects": false` to `package.json` to enable tree shaking in bundlers.
110
+
- Added `"exports"` map to `package.json` for explicit subpath access to source, dist, and Sass files.
111
+
87
112
### Reboot
88
113
89
114
- Relocated heading classes (like `.h1`) and some type classes (`.mark` and `.small`) to Reboot from `_type.scss`. This avoids a dependency in Sass modules and we like to avoid extending selectors in general.
0 commit comments