title: Vite library mode entry points
body: <p>My vite config looks like this.
  I want to have two entry points, as you can see in build.lib.entry I have the entry for my library, in this case src/main.js, but I would also like to have one entry for my project because I am testing locally.</p>
  <pre><code>// vite.config.js
  const path = require('path')
  
  module.exports = {
    build: {
      lib: {
        entry: path.resolve(__dirname, 'src/main.js'),
        name: 'MyLib'
      },
      rollupOptions: {
        // make sure to externalize deps that shouldn't be bundled
        // into your library
        external: ['vue'],
        output: {
          // Provide global variables to use in the UMD build
          // for externalized deps
          globals: {
            vue: 'Vue'
          }
        }
      }
    }
  }
  </code></pre>
  <p>I tried adding the following code inside module.exports, but it didn'T work.</p>
  <pre><code>entry: path.resolve(__dirname, 'src/app.js'),
  </code></pre>
  <p><a href="https://vitejs.dev/guide/build.html#library-mode" rel="noreferrer">https://vitejs.dev/guide/build.html#library-mode</a></p>