Nutella Pancake Machine

    esbuild-plugin-vite-element-ui

    1.0.2 • Public • Published

    esbuild-plugin-vite-element-ui

    解决element-ui在vite使用的过程中,无法正常使用的问题,

    尤其表现为:Can't read property '$isServer' of undefined

    use

    npm install esbuild-plugin-vite-element-ui
    

    in vite.config.js

    import esbuildPlugin from 'esbuild-plugin-vite-element-ui';
    export default {
        optimizeDeps: {
            esbuildOptions: {
              plugins: [
                esbuildPlugin()
              ],
            }
        }
    }
    
    

    Install

    npm i esbuild-plugin-vite-element-ui

    DownloadsWeekly Downloads

    6

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    1.83 kB

    Total Files

    3

    Last publish

    Collaborators

    • jackwen110200