I noticed that if you use es6 features like promises in pcf react, IE 11 will error.
How do you add "polyfills" like coreJS3 into a pcf react component? It would be ideal if we can use the babel-preset-env & babel-plugin-transform-runtime to do this.
@rexkenley - Polyfills for ES6 features that can't be transpiled down to ES5 should already be part of the hosting app platform, either model-driven or canvas PowerApps. For ES6 features that can be transpiled down to ES5, that should already be part of the out-of-the-box tooling build experience, as the base tsconfig file specifies a target of ES5 while allowing use of the ES6 syntax at development time.
Are you running into issues, or just trying to be proactive in understanding before getting started?
Thanks for the reply. I created a simple pcf-react project that works fine in chrome, but errors in IE11. I could be wrong with my assumption that it is a missing es6 polyfill issue.
Both browsers are running v9 Unified.
You can find the source code at
Thanks for taking a look at this.
Is there a way to set the wepback mode to development and devtool inline-source-map so I can debug it in IE11?
The UCI already has the bluebird promise polyfill so it's unlikely to be that.
It's more likely to be something like Object.assign.
Just to be sure - can you try adding the babel polyfill
You can require/import it at the top of the index.js/ts PCF entry point.
Also - check that there are no imports that you are using that have non-transpiled ES6 features.
Thanks for pointing me in the right direction Scott. I went ahead and change the webpack config to use my standard preset-env configuration.
I think by adding corejs3 and @babel/plugin-transform-runtime, PCF react would have better support for ie11. The other benefit of this is that you don't have to add "polyfill" in your code, babel will handle that for you (although I am not sure if you have to specify the browser target to make the entire thing work).
Do bare in mind that if you use your own webpack config then you are essentially outside of support regarding the PCF CLI - any changes that Microsoft team make you optimising the config you won't benefit from.
I don't know if 'extending' the webpack scripts is ever going to be a feasible solution?
Perhaps an eject similar to create-react-app? Thoughts @GregHurlmanMSFT
Keep up to date with current events and community announcements in the Power Apps community.
Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.
Check out the latest Community Blog from the community!