M
M
Maxymus19962021-02-27 17:43:29
JavaScript
Maxymus1996, 2021-02-27 17:43:29

Display in the browser console the line of the file from which the value is returned?

When a value is displayed in the console, chrome shows a link to the finished built file (controller.e.......js), unlike firefox, which shows the file from the developer folder (model.js). The project is built on parcel 2.0.0-beta.1. Is it possible in chrome to display the dev file?
Chrome:
603a5a7ca2758311823852.png
Firefox:
603a5a8a3afb5089386089.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-03-01
@Aleksandr-JS-Developer

you need to use Source map.
Links:
Harb: Source Maps: fast and clear
Google: source map js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question