Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

template literal in factoryWithTypeCheckers breaks es5 compatibility #255

Closed
@pfrend

Description

@pfrend

Problem:
Build issues with webpack when using older uglify-js that can't read es6 input

Version: 15.7

Code:
https://github.com/facebook/prop-types/blob/master/factoryWithTypeCheckers.js#L310

Expected:
Only es5 code exported

Example output of error:

ERROR in common.js from UglifyJs
SyntaxError: Unexpected character '`' [./~/prop-types/factoryWithTypeCheckers.js:310,0]

Note:
First issue in here - sorry if I'm missing some issue filing rules. Let me know if you need more info.
Thanks!

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