I'm developing a recently-ejected create-react-app
application and need to use an outside module.
I did npm install --save-dev starparam
and am importing the module like this: import starparam from 'starparam';
.
When I run my code in NodeJS with my unit-tests (npm test
) everything works as expected.
But, when I run in the browser (using npm start
) I get syntax errors.
This seems to be because the module I'm using uses ES6 features like arrow functions.
What webpack changes do I need to make so this third-party module is included in the transpile?