mikach / requirejs-babel

An AMD loader plugin for Babel
117 stars 32 forks source link

Include the file extension for `sourceFileName` #15

Closed davideaster closed 9 years ago

davideaster commented 9 years ago

Source maps expect sources[] entries to refer to the original file. sourceFileName should include the file extension instead of using just the RequireJS module name.

Including the extension also avoids conflicts between directory and file names in common cases such as:

Without the extension on module.js, the debugger will likely hide either the file or all of the files in the directory.

mikach commented 9 years ago

Thanks!