mcmath / ejs-html-loader

Webpack loader for rendering HTML from EJS templates
MIT License
47 stars 9 forks source link

Webpack5 support #21

Open naoak opened 2 years ago

naoak commented 2 years ago

I got the following warning when I used this loader with webpack@5, but it worked fine without the exception of options passed as query string.

npm WARN ejs-html-loader@4.0.1 requires a peer of webpack@2.x - 4.x but none is installed. You must install peer dependencies yourself.

A failed test with webpack@5.

  1) ejs-html-loader
       options passed as query string
         renders template:
     Uncaught AssertionError: expected [Error: Compiling RuleSet failed: Query arguments on 'loader' has been removed in favor of the 'options' property (at ruleSet[1].rules[1].loader: ../ejs-html-loader/src/index.js?heading=togo)] to not exist
evanprimacy commented 2 years ago

Any love for this?