Trying to use webgl to render a texture, and I am using some npm libraries so I am using .cjs files and using parcel to run it. When I try to get the image from my resources file it doesnt work because parcel moves the image into the project directory and also changes the image name. Is there a way to prevent this from happening?
the file structure looks like this:
index.html
index.cjs
src/
| renderer.cjs
| resources/
| | image.png
but when I run it, parcel changes it to this:
index.html
index.cjs
renderer.cjs
image.86ccfd9d.png
ChatGPT didnt help either