coc-react-refactor icon indicating copy to clipboard operation
coc-react-refactor copied to clipboard

Doesn't work with external browserslist definition

Open topaxi opened this issue 2 years ago • 0 comments

I got a project where in package.json we have a "browserslist": "extends @someorg/browserslist-config" definition.

coc-react-refactor dies with Error: Cannot find module '@someorg/browserslist-config'. I assume this has to do with the bundling strategy of using webpack for the package.

Encountered a similar issue with Next.js, this is how it was solved there: https://github.com/vercel/next.js/pull/33890

topaxi avatar Mar 15 '22 15:03 topaxi