duojs / duo

A next-generation package manager for the front-end
3.42k stars 118 forks source link

Allow required packages to specify their own transform rules #501

Open jxe opened 8 years ago

jxe commented 8 years ago

Browserify has a hackish way to do this, with a section inside package.json.

What would be ideal would be a pre-processor independent way of saying what is being required inside a module. E.g.,

# HappyReactComponent/package.json
{
   "codebase": "es6 jsx png myth"
}

Or maybe it should use mime types or something.