eugeneware / debowerify

A browserify transform to enable the easy use of bower components in browserify client javascript projects. This can be used in conjunction with deamdify to require AMD components from bower as well.
493 stars 51 forks source link

numeric filename support #41

Closed GalumphingCallooh closed 9 years ago

GalumphingCallooh commented 9 years ago

Numeric filenames currently return a TypeObject XXX has no method 'split' error. This eases integration of minified bower main scripts and enables numeric filenames.

GalumphingCallooh commented 9 years ago

After researching this more, it seems that the parse method isn't capable of parsing a file that has already been browserified. I'm testing this using browserify's require, expose, and standalone enabled, then exposing this as the main source of a bower file. It appears to trip up on the generated syntax:

76:[function(require,module,exports){ module.exports=function(o){return o&&"object"==typeof o&&"function"==typeof o.copy&&"function"==typeof o.fill&&"function"==typeof o.readUInt8}; },{}]

I'm not very familiar with falafel, but the problem appears to be how the returned nodes are checked.