mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-15 09:58:28 -07:00
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>
This commit is contained in:
parent
c0b5a843ba
commit
b4ccef3dee
2
Makefile
2
Makefile
@ -887,6 +887,8 @@ update-js: node-check | node_modules
|
|||||||
npx updates -u -f package.json
|
npx updates -u -f package.json
|
||||||
rm -rf node_modules package-lock.json
|
rm -rf node_modules package-lock.json
|
||||||
npm install --package-lock
|
npm install --package-lock
|
||||||
|
npx nolyfill install
|
||||||
|
npm install --package-lock
|
||||||
@touch node_modules
|
@touch node_modules
|
||||||
|
|
||||||
.PHONY: update-py
|
.PHONY: update-py
|
||||||
|
1934
package-lock.json
generated
1934
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
21
package.json
21
package.json
@ -100,6 +100,7 @@
|
|||||||
"eslint-plugin-wc": "2.1.0",
|
"eslint-plugin-wc": "2.1.0",
|
||||||
"happy-dom": "14.12.3",
|
"happy-dom": "14.12.3",
|
||||||
"markdownlint-cli": "0.41.0",
|
"markdownlint-cli": "0.41.0",
|
||||||
|
"nolyfill": "1.0.39",
|
||||||
"postcss-html": "1.7.0",
|
"postcss-html": "1.7.0",
|
||||||
"stylelint": "16.6.1",
|
"stylelint": "16.6.1",
|
||||||
"stylelint-declaration-block-no-ignored-properties": "2.8.0",
|
"stylelint-declaration-block-no-ignored-properties": "2.8.0",
|
||||||
@ -112,5 +113,23 @@
|
|||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"defaults"
|
"defaults"
|
||||||
]
|
],
|
||||||
|
"overrides": {
|
||||||
|
"array-includes": "npm:@nolyfill/array-includes@^1",
|
||||||
|
"array.prototype.findlastindex": "npm:@nolyfill/array.prototype.findlastindex@^1",
|
||||||
|
"array.prototype.flat": "npm:@nolyfill/array.prototype.flat@^1",
|
||||||
|
"array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@^1",
|
||||||
|
"deep-equal": "npm:@nolyfill/deep-equal@^1",
|
||||||
|
"es-aggregate-error": "npm:@nolyfill/es-aggregate-error@^1",
|
||||||
|
"es-iterator-helpers": "npm:@nolyfill/es-iterator-helpers@^1",
|
||||||
|
"hasown": "npm:@nolyfill/hasown@^1",
|
||||||
|
"object.assign": "npm:@nolyfill/object.assign@^1",
|
||||||
|
"object.entries": "npm:@nolyfill/object.entries@^1",
|
||||||
|
"object.fromentries": "npm:@nolyfill/object.fromentries@^1",
|
||||||
|
"object.groupby": "npm:@nolyfill/object.groupby@^1",
|
||||||
|
"object.values": "npm:@nolyfill/object.values@^1",
|
||||||
|
"safe-regex-test": "npm:@nolyfill/safe-regex-test@^1",
|
||||||
|
"string.prototype.includes": "npm:@nolyfill/string.prototype.includes@^1",
|
||||||
|
"is-core-module": "npm:@nolyfill/is-core-module@^1"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user