Loading...

PCF control is too heavy?

PCF control is too heavy?

If you are working on creating or planning to create a PowerApps component framework (PCF) control using React components and FluentUI/Office-fabric, it's crucial to keep an eye on the size of your control. A common mistake that beginners make is importing the whole libraries instead of just the relevant controls, leading to bulky controls. This issue is reported on Stack Overflow and has been documented by bloggers to increase awareness. To avoid this problem, you can import only the required controls in the index.tx file using granular imports, such as importing only button-related libraries.

Another important point to remember is to build in release mode instead of debug mode. Following these critical steps will save you a ton of size in bundle.js and solution. You can verify the file sizes in the out and bin folders. Check out the provided learning link for more information.


Make sure to follow these tips and tricks to optimize the size of your PCF control!

Check out the link provided for more information.

Published on:

Learn more
Arun Vinoth @ Dynamics
Arun Vinoth @ Dynamics

Share post:

Related posts

Creating a Virtual PCF React Control with Fluent UI v8

In this post, you'll learn how to create a React PCF (Power Apps Component Framework) control using Fluent UI v8. While the current templates ...

8 months ago

Installing PCF.Gallery Components When No solution.zip Exists

This post delves into how to install custom PowerApps Component Framework (PCF) components when a solution.zip file is not provided by the dev...

8 months ago

Turbocharge Your Data: The Ultimate Databricks Performance Optimization Guide

In this Ultimate Databricks Performance Optimization Guide, you'll learn everything you need to know to achieve lightning-fast processing spee...

1 year ago

Applying CSS in Virtual PowerApps Component Framework

If you're working with virtual PowerApps Component Framework (PCF) control, this tutorial can help you apply CSS styling to your control. Typi...

1 year ago

Power Apps – Fluent UI Badge

Looking to add an extra touch of style to your Model Driven App Forms? Look no further than PCF controls. PCF controls, or Power Apps componen...

1 year ago

Develop PCF Controls with FluentUI React v9

Microsoft has introduced the first stable version of FluentUI React v9, which is a combination of Office and Teams front-end libraries into on...

2 years ago

PCF Controls – Tree-Shaking For Better Bundle Size

Building modern front-end controls and application requires great care to keep the size of the assets as low as possible. The development of P...

2 years ago

PCF Controls – Tree-shaking to shrink your bundle size

The size of front-end controls and applications is a critical factor that requires careful management to keep them as small as possible. With ...

2 years ago

Explicit package exports in the latest version of Fluent UI might break your PCF path imports

If you are using Fluent UI in your code components (PCF) you probably are also using path-based imports to reduce your bundle size. ...

2 years ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy