title: Vite Migration: error does not provide an export
body: <p>I'm trying to migrate from vue-cli to Vite using Vue 2.0.</p>
  <p>I've some JavaScript-generated files for GRPC communication; alongside each file, there is a declarative file because I'm using Vue with TypeScript. When running Vite, I get this error:</p>
  <pre><code>Uncaught SyntaxError: The requested module '/src/proto/admin_config_grpc_web_pb.js' does not provide an export named 'AdminConfigurationServicePromiseClient'
  </code></pre>
  <p>However, I've a corresponding declaration file which contains this line:</p>
  <pre><code>export class AdminConfigurationServiceClient {
  </code></pre>
  <p>Anybody has encountered this issue and has a solution?</p>
  <p>Thanks</p>