put-selector icon indicating copy to clipboard operation
put-selector copied to clipboard

AMD definition ignored when using RequireJS optimizer

Open conradz opened this issue 12 years ago • 1 comments

I ran into some problems using the RequireJS optimizer on this module, it inserts the line define("put", function(){}); after the put.js source code in the optimized output. Somehow the very non-standard UMD footer is causing the optimizer to think that it is not an AMD module.

I got it working with the optimizer using this header template, but I couldn't figure out how to get it working in node, since it has to load node-html.js.

This may be related to #19, not sure.

conradz avatar May 03 '13 20:05 conradz

This looks like a duplicate of https://github.com/kriszyp/put-selector/issues/28 (ok, actually the other way around). Does this fix for that one fix this one?

kriszyp avatar Oct 09 '15 19:10 kriszyp