Skip to content

InterpolateHtmlPlugin lodash template bug #13358

Open
@Emiya0306

Description

@Emiya0306

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions