Skip to content

Issue with tree shaking #1

Closed
Closed
@xyven1

Description

@xyven1

I am having trouble getting tree shaking working. I import the two icons I am using

import { createApp } from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import { io } from 'socket.io-client'
import {BIconList, BIconMap} from 'bootstrap-icons-vue'

const app = createApp(App)

app.config.globalProperties.$socket = io(process.env.VUE_APP_URL)
app.component('BIconList', BIconList)
app.component('BIconMap', BIconMap)

app.mount('#app')

But webpack-bundle-analyzer shows that practically the entire lib.esm.js loaded.
image
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions