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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,483)