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.
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 withvue-loader
, it's breaking because the entire HTML file is being parsed as LiveScript. It's also worth noting thatcoffee-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.