Has anyone been able to successfully use the Bootstrap dropdown.js component without integrating the entire Bootstrap library? I've attempted it, but haven't had any luck so far.
Upon reading the documentation, it appears that the dropdown.js component relies on Popper, and I've located the dropdown.js source file on GitHub.
However, it seems that dropdown.js has numerous dependencies:
import * as Popper from '@popperjs/core'
import {
defineJQueryPlugin,
getElement,
getElementFromSelector,
isDisabled,
isElement,
isVisible,
isRTL,
noop,
getNextActiveElement,
typeCheckConfig
} from './util/index'
import EventHandler from './dom/event-handler'
import Manipulator from './dom/manipulator'
import SelectorEngine from './dom/selector-engine'
import BaseComponent from './base-component'
I'm unsure of how to proceed with these dependencies. I've attempted removing them, but I keep encountering errors indicating that variables later in the file are undefined.