Changed main module file to use un-minified version.#2109
Changed main module file to use un-minified version.#2109mourner merged 1 commit intoLeaflet:masterfrom
Conversation
This makes the debugging process easier and also makes it possible to choose your own minifier when using browserify or similar bundlers.
|
Do tools use this for setting up script tags in a page, or is it just used for nodejs? If the first, a sourcemap may be better. Otherwise people will have their sites set up to use the uncompressed version? |
|
I don't think people use the In my case I use browserify so I can use NPM and bundle all scripts to one file and use one minifier for the bundle. The nice thing is that browserify/uglify-js can generate source maps for all required modules so I don't need to worry about every package having to supply one individually. Generally it is a bit annoying when I debug a Node.js program and find that one of the modules have been minified, but that is sort of off topic because regular Node.js modules are not meant to run in a browser. I guess pulling these changes does not mean a source map can't be supplied for those who want that too. |
|
cool, seems reasonable to me then :) |
|
Me too. |
Changed main module file to use un-minified version.
|
Smallest diff ever :). Thanks guys! |
This makes the debugging process easier and also makes it possible to choose your own minifier.
An alternative would be for the bulid.js script to have uglify-js output a source map file to the dist directory for the minified version.