I have a dilemma with two files:
- somefile.scss
- somefile.scss.ts
When importing the file in my typescript code, it is referencing the wrong one:
import styles from "somefile.scss"
The typescript part works fine with the correct import (.scss.ts), but webpack chooses the incorrect one (.scss)
Is there a way to prioritize the .scss.ts
file over the .scss
file (both located in the same directory and unable to be renamed or moved)?
I've attempted tweaking the resolve configuration with no luck:
// unsuccessful
resolve: {
extensions: [".scss.ts", ".ts"]
}
// also not effective
resolve: {
extensions: ["*", ".ts"]
}