Closed citizenmatt closed 9 years ago
Yeah, I saw that, but in the "Restrictions" section, it also says:
All modules [must] have IDs and dependency arrays in their define() calls -- the RequireJS optimizer will take care of this for you.
Since this is specifically called out, I thought here would be a good place with advice on how to achieve it. I'll try the r.js repo, though. Thanks!
I've added an issue for r.js - jrburke/r.js#733
Closing in favor of tracking in jrburke/r.js#733.
The readme states that the RequireJS optimiser will automatically add module IDs for
define
calls that don't provide one, when concatenating into a single file. However, I can't get this to work. I'm trying to create a single file from several files that use anonymousdefine
s, with almond, and while it concatenates everything correctly, the anonymousdefine
s are not fixed up and replaced with the module ID. Am I doing something wrong?I'm using the Emmet project with the config defined in
[Gruntfile.js](https://github.com/emmetio/emmet/blob/master/Gruntfile.js#L34-L51)
. Or, by using the following (mostly equivalent)build.js
:Am I missing something? Should the
define
s be replaced?