You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to this commit, InterpolateHtmlPlugin will replace %MY_VARIABLE% after lodash template excuted.
It will cause this problem that if I write <%= 'REACT_APP_VARIABLE_1' === 'TEST' %> and set "REACT_APP_VARIABLE_1=TEST", you can see the result is false.
Emiya0306
changed the title
[InterpolateHtmlPlugin] beforeEmit change to afterTemplateExecution cause lodash template wrong.
[InterpolateHtmlPlugin] beforeEmit change to afterTemplateExecution cause lodash template bug.
Sep 6, 2023
Emiya0306
changed the title
[InterpolateHtmlPlugin] beforeEmit change to afterTemplateExecution cause lodash template bug.
InterpolateHtmlPlugin lodash template bug
Sep 6, 2023
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
According to this commit, InterpolateHtmlPlugin will replace %MY_VARIABLE% after lodash template excuted.
It will cause this problem that if I write
<%= 'REACT_APP_VARIABLE_1' === 'TEST' %>
and set"REACT_APP_VARIABLE_1=TEST"
, you can see the result is false.It is strange, I think it is a bug.
Reproducible demo
https://github.com/Emiya0306/interpolate-html-plugin-bug-report
https://github.com/Emiya0306/interpolate-html-plugin-bug-report/blob/master/public/index.html
The text was updated successfully, but these errors were encountered: