title: Vue3 and Vue-Router cannot access the parameters with the $route object in production but can in dev
body: <p>I'm having some bad time with the build of a Vue3 app for production, literally 90% of my scripts are broken in production and that's related to my variables being undefined in production, I really don't know why this occurs. But for one of them I have a concrete example :</p>
  <p>I access a parameter value in my route using <code>this.$route.params.myParameter</code> which works totally fine in dev mode, but in prod it's undefined and crash the whole thing</p>
  <p>I can edit the question with code snipets but I don't think it's required</p>