Skip to main content
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
AnViL999
New Contributor

Devdependencies

hello,

 

when generating the pbiviz and using it in power bi, are the devDependencies also being installed or are only the dependencies being installed?

 

kind regards

1 ACCEPTED SOLUTION
BhavinVyas3003
Valued Contributor

Only dependencies are included in the .pbiviz used in Power BI. devDependencies are used only during development and are not bundled.


Thanks,
Bhavin
Problem solved? Hit โ€œAccept as Solutionโ€ and high-five me with a Kudos! Others will thank you later!

View solution in original post

2 REPLIES 2
BhavinVyas3003
Valued Contributor

Only dependencies are included in the .pbiviz used in Power BI. devDependencies are used only during development and are not bundled.


Thanks,
Bhavin
Problem solved? Hit โ€œAccept as Solutionโ€ and high-five me with a Kudos! Others will thank you later!
dm-p
Honored Contributor

Separating dependencies from devDependencies is really a matter of semantics when it comes to webpack-based projects, as webpack will inspect and tree-shake whatever dependencies you're using, irrespective of where they are allocated in package.json. The approach cited in this article of separating them still makes sense, as it helps folks understand your codebase, but it won't ultimately matter once the visual is packaged.

 

For a time, it was even a requirement for certification that a visual must only use devDependencies (here's an example of a visual I had to do this for), but I'm pretty sure this has recently been relaxed, although I'm still doing it out of habit for all the visuals I submit to AppSource.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Users online (14,771)