Reputation: 155
I am the author of TreeJS. So far, I use TypeScript to generate the build file (plain browser-understandable JS), a Type Definitions file, and a map file for the unminified build. I use an external tool called Minify to minify the build.
My question is, should I also create a map file for the minified build, or the map file for the unminified build will work with the minfied one?
And, If I do need to build a map for that, does anyone know any tools?
Upvotes: 0
Views: 812
Reputation: 2885
Since it is your library, you don't need to do anything you don't want, but source maps can be huge help for your users. Minify uses terser to minify JavaScript, and terser can generate composed source maps. I never worked with Minify, but it seems like you can pass map generated by typescript in options.
Upvotes: 1