diff options
author | techknowlogick <techknowlogick@gitea.com> | 2024-07-23 20:42:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-24 00:42:21 +0000 |
commit | b4ccef3dee9653a2c511f55b69fde090ac60ce96 (patch) | |
tree | dc5a58a3e962f74304203b817ad91e1153ab1967 /Makefile | |
parent | c0b5a843badf7afa1f1aeb8f41cac87806ee188e (diff) | |
download | gitea-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-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |