Skip to content
Discussion options

You must be logged in to vote

For anyone interested: I've asked rich on Twitter and no... it's not possible for the moment. But they are looking into it.

EDIT:

Upon a suggestion from twitter i found out that if you modify the vite config to add your package to optimizeDeps.exclude and ssr.noExternal it actually works. The way i ended up doing the thing it's export a vite plugin to modify the vite config so that the user can uise the package freely.

I'll leave the super simple plugin there if someone need it:

export function pluginName() {
    return {
        name: 'vite-plugin-your-package-name',
        config: () => ({
            optimizeDeps: {
                exclude: ['your-package-name']
            },

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by paoloricciuti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant