appedemic / livescript-loader

livescript loader for webpack
19 stars 17 forks source link

Cannot handle multi-language files #9

Open chrisvfritz opened 8 years ago

chrisvfritz commented 8 years ago

This loader works great when parsing a file that only contains LiveScript, but when parsing LiveScript in a script element, such as as when used with vue-loader, it's breaking because the entire HTML file is being parsed as LiveScript. It's also worth noting that coffee-loader, which this is based on, does not suffer from the issue.

In the link above, I provide a minimal example to reproduce the issue.