remix-esbuild-override
remix-esbuild-override copied to clipboard
Can the example be refactored to handle JS & JSX for styled components?
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
.