kriszyp / put-selector

A high-performance, lightweight function for creating and manipulating DOM elements with succinct, elegant, familiar CSS selector-based syntax
Other
290 stars 39 forks source link

AMD definition ignored when using RequireJS optimizer #22

Open conradz opened 11 years ago

conradz commented 11 years ago

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.

kriszyp commented 9 years ago

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?