TinyColor icon indicating copy to clipboard operation
TinyColor copied to clipboard

r.js namespace support

Open Bantam opened this issue 12 years ago • 1 comments

Improves requirejs support of tinycolor by supporting namespaces in the r.js optimizer as described here http://requirejs.org/docs/faq-optimization.html

Bantam avatar Nov 03 '13 12:11 Bantam

Interesting, I've had some weird stuff happen with all the different ways to import the script (like https://github.com/bgrins/spectrum/pull/113 and https://github.com/bgrins/spectrum/issues/41).

Since you seem to know something about this, maybe you would be a good person to ask - what is the current "best" way to expose the lib to all the different environments? Here is what we are doing right now - https://github.com/bgrins/TinyColor/blob/master/tinycolor.js#L950-L961. And will this change still work with older require/amd versions?

bgrins avatar Nov 03 '13 23:11 bgrins