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
Bootstrap imports popper using import * as Popper from '@popperjs/core', which will aways import the cjs version, even if the distribution is intended for browser. This fails in my semi-buildless workflow when importing bootstrap using rollupjs.
Some of workarounds given in #933 work, but I think the best solution would be to use the "browser" field in package.json as intended and point it to the umd (or esm?) distribution.
browser is not supposed to be umd. It can be a map to specify which files need to be aliased to make package work in browser. There is no need for it in this project.
Bootstrap imports popper using
import * as Popper from '@popperjs/core'
, which will aways import the cjs version, even if the distribution is intended for browser. This fails in my semi-buildless workflow when importing bootstrap using rollupjs.Some of workarounds given in #933 work, but I think the best solution would be to use the
"browser"
field inpackage.json
as intended and point it to the umd (or esm?) distribution.The text was updated successfully, but these errors were encountered: