Currently, I am utilizing Next.js for my project which incorporates webpack 5 to compile TypeScript code.
Within my public folder, there are several web worker scripts located at path "/workers/**/*.worker.js".
I am curious if it is possible to write these scripts in TypeScript or at least transpile them using Babel for compatibility with older browsers.
It is worth mentioning that anything within the "public" folder is served as a file and can be accessed like a CDN.
Is it feasible to create a "workers" folder within my project and load these scripts into the public path using webpack and Next.js?