Skip to content

[perf]: untranspiled template literal string is causing an error in IE11 #224

@markplewis

Description

@markplewis

The template literal that's returned by the following function isn't being transpiled during the distribution build process:

Source file (/src/index.js):

const getIndent = level => `${eol}${indentString.repeat(level)}`;

So when I import posthtml-beautify into my project, /lib/index.js still contains a template literal:

getIndent = function (level) { return `${eol}${indentString.repeat(level)}` }

This breaks my app in IE11 because template literals are not supported by that browser.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions