matmen / ImageScript

zero-dependency JavaScript image manipulation
https://www.npmjs.com/package/imagescript
Other
633 stars 32 forks source link

[FR] Are there any plans to allow custom CDN URLs for WASM files? #41

Open Vizards opened 2 months ago

Vizards commented 2 months ago

Is your feature request related to a problem? Please describe. Thank you for your excellent work so far!

As we know, users in some internal or special networks may have difficulty accessing some static files provided by third-party CDNs. All utility functions under the browser branch of ImageScript have hardcoded WASM resource files from unpkg.com. It would be helpful to provide a configuration function to customize the location of the WASM resources.

Another potential issue is that the current WASM version of ImageScript seems to only provide the final JavaScript file for deployment. Is there any plan to release a separate npm package for the browser branch?

Describe the solution you'd like

Additional context If needed, I am happy to arrange time to develop this feature and submit a Pull Request.