I’m working on a React application that I set up with create-react-app. I’ve included a private npm package that I have access to, which utilizes ES6 and JSX in its components. However, when I run my application, react-scripts fails to compile the modules from node_modules. Is there a method to enable a create-react-app project to process JSX and ES6 syntax from an external library without needing to export the entire application or modify the webpack configuration?
```javascript
Compilation Error:
./node_modules/external-lib/src/components/testComponent.js
Module parse error:
Unexpected token (8:6)
You might need a suitable loader for this file type.
| render() {
| return (
|
| Test component content
|