You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In PowerApps PCF projects, bundling fails in production when the bundle size exceeds the 5 MiB limit, resulting in an error during the release packaging. The MAX_BUNDLE_SIZE_IN_MB parameter is set to a fixed 5 MiB in the pcf-scripts library, and there’s currently no option for local developers to configure this limit, unlike the organization-level flexibility available in Power Platform.
This limitation only affects production builds, preventing custom components with larger dependencies from successfully deploying. The lack of configurability hinders scalability for complex components that require additional resources in production.
Steps to Reproduce
Build a PCF project with dependencies that result in a production bundle size greater than 5 MiB.
Run the production bundle command (e.g., dotnet -c release).
Observe the "Error: An error occurred compiling or bundling the control." error in the output.
Expected Behavior
There should be a configuration option within local PCF projects to adjust the MAX_BUNDLE_SIZE_IN_MB limit specifically for production builds, allowing flexibility for developers to meet project requirements without hitting this hard limit.
Suggested Solution
Provide a way to configure MAX_BUNDLE_SIZE_IN_MB specifically for production builds in local projects, similar to the option available at the organization level.
Offer documentation or guidance for developers to adjust this limit locally as a temporary workaround.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Issue Summary
In PowerApps PCF projects, bundling fails in production when the bundle size exceeds the 5 MiB limit, resulting in an error during the release packaging. The
MAX_BUNDLE_SIZE_IN_MB
parameter is set to a fixed 5 MiB in thepcf-scripts
library, and there’s currently no option for local developers to configure this limit, unlike the organization-level flexibility available in Power Platform.This limitation only affects production builds, preventing custom components with larger dependencies from successfully deploying. The lack of configurability hinders scalability for complex components that require additional resources in production.
Steps to Reproduce
dotnet -c release
).Expected Behavior
There should be a configuration option within local PCF projects to adjust the
MAX_BUNDLE_SIZE_IN_MB
limit specifically for production builds, allowing flexibility for developers to meet project requirements without hitting this hard limit.Suggested Solution
MAX_BUNDLE_SIZE_IN_MB
specifically for production builds in local projects, similar to the option available at the organization level.References
Error details and related discussion: Microsoft Power Platform Build Tools Issue #747
Beta Was this translation helpful? Give feedback.
All reactions