pthrasher / snockets

Sprockets-style script concatenation for Node
119 stars 39 forks source link

compilers[x].match needed? #19

Closed iangreenleaf closed 11 years ago

iangreenleaf commented 12 years ago

All the examples of the compilers hash include a match key, like here:

module.exports.compilers = compilers =
  coffee:
    match: /\.js$/
    compileSync: ...

But AFAICT that's never used. Is there a reason for it to be there?

pthrasher commented 11 years ago

As more compilers are added, we'll need to ensure someone didn't pass a require for an unsupported file type to be compiled into the .js chain. There's currently no check in place, but this is planned to be implemented in 2.0.