title: Vuejs script setup cannot contain ES module exports
body: <p>Following the setup guide for Vuejs and Pinia</p>
  <pre class="lang-html prettyprint-override"><code>&lt;script setup&gt;
  import {useStore} from &quot;../stores/store.js&quot;;
  
  export default {
    setup() {
      const store = useStore();
      return {
        store,
      }
    },
  }
  &lt;/script&gt;
  </code></pre>
  <p>I get the following error from Vite:</p>
  <pre class="lang-sh prettyprint-override"><code>[vite] Internal server error: [@vue/compiler-sfc] &lt;script setup&gt; cannot contain ES module exports. If you are using a previous version of &lt;script setup&gt;, please consult the updated RFC at https://github.com/vuejs/rfcs/pull/227.
  </code></pre>
  <p>How do I move to a version of <code>&lt;script setup&gt;</code> that will allow me to do the above?</p>
  <p>Thanks!</p>