foo.js depends on
thud.js; when your files are concatenated into one output file,
thud.js will be included first.
A few facts are worth special mention.
- Sprockets does not require Rails. Sam has also written an excellent
sprocketizebinary from the command line.
requiredirectives are an extension of comment syntax, they won’t confuse a JS interpreter.
In short, we’re excited about what Sprockets means for the Prototype ecosystem. If you maintain a Prototype add-on library, the prototype-core mailing list would love to help you make it Sprockets-aware.
Now is the time on Sprockets when we dance.