Skip to content

Ascii Codes not Converted in Production Webpack Build #254

@epihel

Description

@epihel

Using the form on http://wix.github.io/react-templates/, the HTML <p>We&#8217;re here.</p> gets converted to React.createElement('p', {}, 'We\u2019re here.') as expected.

Using webpack, react-templates, and react-templates-loader in development, the output is also as expected.

But in the webpack production build, it's converted to r.createElement("p",{},"We’re here."), which renders as <p>We’re here.</p> in Chrome.

My webpack config is { test: /\.rt$/, loader: 'react-templates-loader?modules=es6' } and I'm using the latest node (10.13.0), react (16.6.1), react-templates (0.6.3), react-templates-loader (0.6.5), and webpack (4.25.1).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions