cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Euclides
Level: Powered On

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
rajyraman
Level: Powered On

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
rajyraman
Level: Powered On

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

Euclides
Level: Powered On

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.

 

rajyraman
Level: Powered On

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

Euclides
Level: Powered On

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

Thank you @rajyraman 

 

Got it!

 
 

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Users online (3,636)