DEV Community

Discussion on: Is it safe to ship JavaScript Source maps to production?

Collapse
 
dyw972 profile image
Yohan D. • Edited

I was asking me the same question and after some research here is what I've found :

It's an article wrote by Chris Coyier, published Mar 1, 2019.

In my opinion this article is the answer to this question.

So,

Why people are agree to ship source maps to production ?

1 - It might help you track down bugs in production more easily
2 - It helps other people learn from your website more easily

Why people are not agree to ship source maps to production ?

1 - Sourcemaps require compilation time
2 - It allows people to "steal" your code

You can read more

here 👉🏿 css-tricks.com/should-i-use-source...

here 👉🏿 m.signalvnoise.com/paying-tribute-...

here 👉🏿 medium.com/@sujankanwar/enable-sou...

and here 👉🏿 sourcemaps.info/spec.html

Happy coding !

🖖🏿