I am using vite's import.meta.glob() to generate a list of download links out of the directory applications which is located inside public and looks like this:
public/applications/
├── Citrix_Workspace
│ ├── Mac
│ │ └── citrix_workspace.dmg
│ ├── Windows
│ │ └── citrix_workspace.exe
│ └── img
│ └── citrix_workspace.jpg
└── Visual_Studio_Code
├── Mac
│ └── visual_studio_code.dmg
├── Windows
│ └── visual_studio_code.exe
└── img
└── visual_studio_code.png
It works fine, but the error comes when I want to build the project by executing npm run build.
It looks like this:
[vite:build-import-analysis] Parse error @:2:1031
I am using a windows subsystem for linux with Ubuntu installed. The parse error comes because of the incompatible file formats like .exe and .dmg.
Can I do anything to properly build all of it with my current setup without getting an error?