Popper is distributed in 3 different versions, in 3 different file formats.
The 3 file formats are :
* esm
(works with import
syntax — recommended)
* umd
(works with <script>
tags or RequireJS)
* cjs
(works with require()
syntax)
There are two different esm builds, one for bundler consumers (e.g. webpack, Rollup, etc..), which is located under /lib
, and one for browsers with native support for ES Modules, under /dist/esm
. The only difference within the two, is that the browser-compatible version doesn't make use of process.env.NODE_ENV
to run development checks.
The 3 versions are :
* popper
: includes all the modifiers (features) in one file (default);
* popper-lite
: includes only the minimum amount of modifiers to provide the basic functionality;
* popper-base
: doesn't include any modifier, you must import them separately;