Closed
Description
At the moment, when viewing Gitea page, a warning will be printed in browser console:
Feature flags __VUE_OPTIONS_API__, __VUE_PROD_DEVTOOLS__ are not explicitly defined.
You are running the esm-bundler build of Vue, which expects these compile-time feature flags
to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
For more details, see https://link.vuejs.org/feature-flags.
The key problem is that Gitea uses dynamic Vue templates and needs Vue compiler for production build, for example:
- https://github.com/go-gitea/gitea/blob/main/templates/user/dashboard/repolist.tmpl
- https://github.com/go-gitea/gitea/blob/main/templates/repo/branch_dropdown.tmpl
IMO, something could be done:
- In the near future, fix the warning by setting proper options, still use the dynamic compiler.
- In the far future, rewrite the Vue components to pure SFC.