assume I have a Vue component that I use multiple times on a page. Sometimes it is loaded asynchronously:
Are all imports from this component added each time?
For example, if I use
import debounce from 'lodash/debounce';
export default {
name: 'Test',
...
}
<template>
<div>
<Test />
<Test />
<Test />
<Test />
<Test />
<Test />
<Test />
<Test />
<Test />
<Test />
<Test />
<Test />
...
</div>
</template>
<script>
import test from 'components/test';
export default {
...
}
</script>
will lodash/debounce
be reloaded every time (and therefore consumes RAM and traffic) when I mount the component e.g. 20x on a page?