usabilityhub / rails-erb-loader

Embedded Ruby (.erb) webpack loader for Ruby projects.
MIT License
103 stars 28 forks source link

Fail on invalid dependency #24

Closed rhys-vdw closed 7 years ago

rhys-vdw commented 7 years ago

Currently there is no validation of dependencies. We should throw here if a file does not exist before passing it to loader.addDependency.

This should actually fail to compile the file instead of just printing a warning. (Also should change the invalid bool warning to be a fail case.)