remove/reset console.log in parcel.js

759 Views Asked by At

When I console.log in my js files i cant track them , because they all show up in the new js file created by parcel

when i try to console.log("test") in main.js file in line 3

result expected in console:
test ___ main.js.3

actual result in console :
test ___ main.9604d897.js.429

parcel version : 2.0.0-beta.1

package.json:

{
    "scripts": {
        "start": "parcel index.html"
    },
    "devDependencies": {
        "parcel": "^2.0.0-beta.1"
    }
}
1

There are 1 best solutions below

0
On

After some test I figured out that the problem was in the browser,

I was using Chrome (Version 87.0.4280.88 (Build officiel) (64 bit))

when I tired using a different browser like Firefox , I had the normal output in the console

I will use Firefox as a default browser when working with parcel.