ES Modules?

foundant pro premium priority asked 4 months ago

Our app runs on vite as built from the setup here. I can see in the docs references to a v7 bundle which is natively an ES module. Does there exist a version of that for the vue ui kit? If so would you kindly point me to it and if not is that planned?

I checked my orders already and did not see it.


Bartosz Cylwik staff answered 4 months ago

Hi! MDB Vue already uses the ES module functionalities. When you import components as modules, after building your app, tree-shaking should remove any unused code from our package. We're also using Vue as the bundler for the MDB Vue package.

For MDB Standard, starting from version 7, we switched to Vite and provided two different ways to import the UI kit: UMD and ES modules.

If you've encountered any issues with tree-shaking or have further questions, let us know.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Vue
  • MDB Version: MDB5 5.0.0
  • Device: Macbook Pro M3 Max
  • Browser: Firefox
  • OS: Macos
  • Provided sample code: No
  • Provided link: Yes
Tags
vue