cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Euclides
Regular Visitor

How is build.js.map created when PCF is build?

I am trying to debug PCF using fiddler. Based on tutorial I saw. Build.js.map is used to map what is deployed from my local file to the file deployed to environment.

 

Any idea on this. Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

@Euclides- If you have changed the webpack build as per 5:14 to 5:40, you should see sourcemaps being generated.image.png

View solution in original post

4 REPLIES 4
rajyraman
MVP

@Euclides- If you are talking about this video (https://www.youtube.com/watch?v=Ov-m5FBUj9g), it builds sourcemap only when you build as production using "msbuild /t:rebuild /p:configuration=Release". If you need sourcemap for debug mode as well, which is default when you run "msbuild /t:rebuild", just set devtool: 'source-map' rather than conditionally setting it. The config in the video is to build sourcemap only for production.

image.png

Thanks @rajyraman for the reply.

 

This is what I was thinking also, that there's a config file I need to update. But I tried to look for this folder/file in my PCF, I couldn't find it.

 

@Euclides- If you have changed the webpack build as per 5:14 to 5:40, you should see sourcemaps being generated.image.png

View solution in original post

Thank you @rajyraman 

 

Got it!

 
 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,944)