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
Description
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
Labels
No labels