stitch icon indicating copy to clipboard operation
stitch copied to clipboard

Option to produce only the set of definitions

Open wolever opened this issue 14 years ago • 0 comments

It would be nice if there was an option to export only the set of definitions. For example, to produce something like:

{
  "foo": function(exports, require, module) { … },
  "foo/bar": function(exports, require, module) { … },
  …
}

Which can then be wrapped in whatever header/footer is appropriate (ex, so AMD-compatible code can be produced).

wolever avatar Jan 02 '12 08:01 wolever