Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why there is a network request to 'cdn.jsdelivr.net'? #225

Open
aidscooler opened this issue Oct 15, 2024 · 2 comments
Open

Why there is a network request to 'cdn.jsdelivr.net'? #225

aidscooler opened this issue Oct 15, 2024 · 2 comments

Comments

@aidscooler
Copy link

I've installed browser-image-compression in my project which is powered by vitepress and I can find 'browser-image-compression.js' in the path 'node-modules/browser-image-compression/dist/', why there is still a network request to 'https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js'?
Here is how I import browser-image-compression:

<script setup > import imageCompression from 'browser-image-compression'; </script>
@tinohager
Copy link

it has something to do with the libURL which points there by default but how to unconfigure it correctly is not clear to me either

@say8425
Copy link

say8425 commented Dec 2, 2024

libURL: string, // optional, the libURL of this library for importing script in Web Worker (default: https://cdn.jsdelivr.net/npm/browser-image-compression/dist/browser-image-compression.js)

Web Worker use the jsdelivr CDN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants