opal
opal copied to clipboard
[WIP] Import files required by require_tree in Builder directory mode
Opal::Builder directory mode did not import files required via require_tree. This PR fixes that, however it probably moves SourceMap info a couple of lines too, which currently is not my concern, ill open a separate bug report for that once merged.
The correct import is tested by specs of #2656
Contrary to above comment I added a spec here and line offset compensation for source maps.
Final revision, compiler should have generated the imports in the first place, thats what happens now.