0ahz/vite-plugin-babel-import

problem with chrome debugger

Opened this issue · 0 comments

Hi, I had to stop using this plugin (for the time being) because I've found that it is breaking my chrome-debugger: any breakpoint will be displayed far from its real position and also the scope inspection (variables) is not displayed correctly.
This is my configuration inside vite.config

        vitePluginImport([
            {
                libraryName: '@mui/icons-material',
                libraryDirectory: '',
                libraryChangeCase: "pascalCase",
                ignoreStyles: [],
            },
        ])

The reason I was using it is that this transformation speeds up my build process by greatly reducing the number of "modules transformed".

Since I need this plugin only for "vite build", while the problem is actually affecting me in the vite "dev", isn't there a way to limit its influence to the build process alone?
Thanks