remix-esbuild-override icon indicating copy to clipboard operation
remix-esbuild-override copied to clipboard

Can the example be refactored to handle JS & JSX for styled components?

Open iDVB opened this issue 2 years ago • 0 comments

Took me about 2 days to find the source of why this module wasn't seeming to work for our specific repo but works fine in the example. It appears as though the styled-components-esbuild-plugin.js file doesn't take into account projects that have *.js files that contain JSX. I tried changing the onLoad filter, but then it seemed to want to process even files in node_modules.

Any ideas? I'd rather not have to rename all out custom lib files to jsx.

iDVB avatar Feb 20 '23 01:02 iDVB