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
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (9,673)