remix-run / history

Manage session history with JavaScript
MIT License
8.3k stars 960 forks source link

chore: fix generate sourcemap #946

Closed 2239559319 closed 2 years ago

2239559319 commented 2 years ago

fix sourcemap generate. In production mode(default), there is no sourcemap generated. If you want to generate sourcemap by yourself, set the environment variable PRETTY to true. #928

yasonk commented 2 years ago

So this fixes a bug introduced by this commit: https://github.com/remix-run/history/commit/6d901ec737fa5eb714dc3ef7ba92b8a8fc4689f4 right?

Also should the use of PRETTY be part of the docs. Seems a little confusing when the source map will be generated and when I need to make some changes to generate source maps