refactoring-codemods
refactoring-codemods copied to clipboard
import './style.css' goes to import './style'
Hey there,
I think the title says most of it:
import './style.css'
goes to import './style'
Anyway to make that stop from happening?
Other than that, amazing tool!
Thanks for the report and glad you like the tool!
I'm mid flight on resolving this issue. I'll keep this open until I get something pushed.
The main issue is when we reconstruct the import paths we assume .js
and drop the extension. This also affects moving .css
files and updating js file references etc.
also not scoped to just .css
all non .js
extensions are affected.
Can we add a failing test for this? I tried but wasn't able to make a test reproducing this issue.
Yeah I'll take a look.
+1 for this issue, but really freeking awesome tool. You deserve all the 🍺