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

Axios does have side effects, despite sideEffects=false #6718

Open
aryzing opened this issue Nov 26, 2024 · 0 comments
Open

Axios does have side effects, despite sideEffects=false #6718

aryzing opened this issue Nov 26, 2024 · 0 comments

Comments

@aryzing
Copy link

aryzing commented Nov 26, 2024

Describe the bug

This line claims the axios package has no side effects,

"sideEffects": false,

which seems to be at odds with this top-level function call,

const axios = createInstance(defaults);

Am I missing something here? Seems that function call is at the top level and will run when the package is imported, thus producing side-effects

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

1 participant