mapboxgl-powerbi icon indicating copy to clipboard operation
mapboxgl-powerbi copied to clipboard

Update to Powerbi-visuals-tools v3+

Open ryanbaumann opened this issue 6 years ago • 5 comments

Power BI Visuals tools introduce modern ECMAScript 2015 modules into TypeScript code. This will allow us to clean up the code base and make it more maintainable and use tree-shaking to reduce the total custom visual size (improving visual load time performance). Notably, we should be able to remove the window adaptor hack -https://github.com/mapbox/mapboxgl-powerbi/blob/master/src/js/mapboxglAdaptor.js - to include specific external libraries.

V3 tools are currently in preview, so don't make this upgrade in production until the tools are in GA.

See docs here - https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/migrating-to-powerbi-visuals-tools-3-0/

ryanbaumann avatar Feb 03 '19 02:02 ryanbaumann

This is slated for launch in Q2 2019 by Microsoft and would really improve the maintainability and testability of this project. We should switch as soon as it's available in the next few months. It should also allow us to reduce the size of the visual, making it load faster. cc/ @samgehret

ryanbaumann avatar Apr 28 '19 22:04 ryanbaumann

Blog post from June 4:

"We are excited to announce that the new release of powerbi-visuals-tools v3 is now available!"

otravers avatar Jun 06 '19 17:06 otravers

Migration guide - https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/migrating-to-powerbi-visuals-tools-3-0/

ryanbaumann avatar Jun 08 '19 03:06 ryanbaumann

Adding this to v1.5 project since it's a huge quality of life improvement, and should make future development much easier and the visual package load faster for all users.

ryanbaumann avatar Oct 08 '19 19:10 ryanbaumann

I ran into a number of challenges migrating to PBIVIZ v3 tools - most notably we need to migrate all import syntax for all our files to ES6 / webpack imports. Going to move the migration work to a separate PR and link here.

ryanbaumann avatar Oct 09 '19 18:10 ryanbaumann