emaphp / underscore-template-loader

A Underscore and Lodash template loader for Webpack
MIT License
104 stars 24 forks source link

webpack 4.29.0 building error about using 'with' stament #35

Open ghost opened 5 years ago

ghost commented 5 years ago

Hey, I am trying to use the loader for backbone/marionette project I am getting an error in the console says Uncaught SyntaxError: Strict mode code may not include a with statement and the build doesn't work. I am not sure 100.1% from the reason or if this error is the only issue I have in my code, but I tried to isolate the issue by using just one simple of booth js+html

tvxqljw commented 3 years ago

I meet this question too when I build as a component to use. How did you fix it?