Open arranf opened 6 years ago
Right now there is no workaround for this. Sorry! I have plans to ditch Popper.js asap and create our own "Popper" thing.
For the very next version, I will create a better guide on how to import the source code, instead of bundled one (like your scenario).
This will take a while, since my mac died Yesterday. :|
I will keep this issue opened until the fix!
Thank you!
@arranf Thinking here, I will change the codebase to generate different bundles. UMD, CJS, and ESM. This would definitely be easy to use in your case, because you'll import the esm file, that do not contain any dependency/polyfill. This will be on beta-8
A brief description of the issue
popper.js is bundled in the
dist
version of vue-material which causes issues when attempting to unit test components which rely on popper.js using jsdom as popper.js relies on unsupported APIs.Steps to reproduce
vue-material/dist/component
syntaxpopper.js
being unsupported in jsdomWhich browser?
Vue 2.5 Vue-Material 1.0-beta-7
What is expected?
I'd expect to either:
/dist
bundle/dist
and load in dependencies likepopper.js
separatelyWhat is actually happening?
popper.js
is bundled in with dist causing errors such as the following:The suggestion by
popper.js
is to mock it but that's impossible due to the bundle