bowerjs / knockout

knockout libs for bower
2 stars 8 forks source link

Is Debug version just unminified or something else in there? #10

Open sytelus opened 10 years ago

sytelus commented 10 years ago

I've minification of all js done separately so I'd like to reference unminified filed. But I'm confused here if .debug.js is just unminified or has some more things in it. It would be nice to maintain common naming such as .min.js for minified version and just .js for unminified version and .debug.js for code with debugging constructs such as logging.

kohenkatz commented 10 years ago

The only difference between these files, as far as I know, is the minification. You can see the packaging script in the original Knockout repository.

tannerhodges commented 9 years ago

Yes. The difference is that DEBUG gets set to true instead of false. This is handled by the buildDebug function in the Gruntfile.

`source.push('var DEBUG=true;\n');`

I haven't looked into the specifics, but from the KnockoutJS Downloads page:

[The debug build] exposes additional unsupported private APIs.

So yeah, I use the debug version and just set DEBUG = false.