-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
issue/duplicateThe issue has already been reported.The issue has already been reported.topic/uiChange the appearance of the Gitea UIChange the appearance of the Gitea UI
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.
Metadata
Metadata
Assignees
Labels
issue/duplicateThe issue has already been reported.The issue has already been reported.topic/uiChange the appearance of the Gitea UIChange the appearance of the Gitea UI