aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.com>2024-07-23 20:42:21 -0400
committerGitHub <noreply@github.com>2024-07-24 00:42:21 +0000
commitb4ccef3dee9653a2c511f55b69fde090ac60ce96 (patch)
treedc5a58a3e962f74304203b817ad91e1153ab1967 /Makefile
parentc0b5a843badf7afa1f1aeb8f41cac87806ee188e (diff)
downloadgitea-b4ccef3dee9653a2c511f55b69fde090ac60ce96.tar.gz
gitea-b4ccef3dee9653a2c511f55b69fde090ac60ce96.zip
use nolyfill to remove some polyfills (#31468)
We don't need to have polyfills down to Node v4. Some of our deps have polyfills, and don't utilize the built-in implementation if available. While this does decrease our package graph, I haven't been able to notice any decrease/increase in page load times, although that could likely be just because it's already pretty fast. Nolyfill is https://github.com/SukkaW/nolyfill updates to files generated with: ```shell npx nolyfill install npm update ``` Before this is/isn't merged, I'd be appreciative/thankful for other's insights. Edit: This isn't due to a specific individual. I am generally supportive of them and their dedication to backward compatibility. This PR is due to not needing those imports for our minimum requirements. Please don't take this PR as commentary on anyone's character. --------- Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8236f6f591..05d0d61a97 100644
--- a/Makefile
+++ b/Makefile
@@ -887,6 +887,8 @@ update-js: node-check | node_modules
npx updates -u -f package.json
rm -rf node_modules package-lock.json
npm install --package-lock
+ npx nolyfill install
+ npm install --package-lock
@touch node_modules
.PHONY: update-py