cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted

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

@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
Highlighted

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

@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

Highlighted
Regular Visitor

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

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.

 

Highlighted

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

@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

Highlighted
Regular Visitor

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

Thank you @rajyraman 

 

Got it!

 
 

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (10,473)