Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import sortablejs only once #25936

Merged
merged 2 commits into from
Jul 17, 2023
Merged

Import sortablejs only once #25936

merged 2 commits into from
Jul 17, 2023

Conversation

silverwind
Copy link
Member

Previously, sortablejs was imported twice, once synchronously and once asynchronously, leading to webpack creating duplicate output code (once in the index bundle, and once in a separate chunk). Fix this by always asynchronously importing it. This was one of the build warnings observed when trying to build with vite.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 17, 2023
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 17, 2023
@silverwind silverwind changed the title Import sortablejs only once Import sortablejs only once Jul 17, 2023
@silverwind silverwind added type/enhancement An improvement of existing functionality skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labels Jul 17, 2023
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jul 17, 2023
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jul 17, 2023
@6543 6543 enabled auto-merge (squash) July 17, 2023 17:57
@6543 6543 added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Jul 17, 2023
@6543 6543 added this to the 1.21.0 milestone Jul 17, 2023
@6543 6543 merged commit 8bb0a03 into go-gitea:main Jul 17, 2023
24 checks passed
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Jul 17, 2023
@silverwind silverwind deleted the sortableimport branch July 17, 2023 18:31
zjjhot added a commit to zjjhot/gitea that referenced this pull request Jul 18, 2023
* giteaofficial/main:
  [skip ci] Updated translations via Crowdin
  Import `sortablejs` only once (go-gitea#25936)
  Make environment-to-ini work with INSTALL_LOCK=true (go-gitea#25926)
  Ignore `runs-on` with expressions when warning no matched runners (go-gitea#25917)
  Skip unuseful error message in dev mode when watching local filesystem (go-gitea#25919)
  Add shutting down notice (go-gitea#25920)
  Downgrading Snap to build with node/18 instead of node/20
  Fix margin on the new/edit project page. (go-gitea#25885)
  Add 1.20.0 changelog (go-gitea#25901)
  Fix incorrect milestone count when provide a keyword (go-gitea#25880)
  Avoid opening/closing PRs which are already merged (go-gitea#25883)
  Make `add line comment` buttons focusable (go-gitea#25894)
  Fix "Flash" message usage (go-gitea#25895)
  [skip ci] Updated translations via Crowdin
  Add support for different Maven POM encoding (go-gitea#25873)
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Oct 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants