Removed polyfills for ancient browsers from bundle

This commit is contained in:
squidfunk 2023-02-18 13:04:50 +01:00
parent 9a59060acd
commit e3b1bcf179
13 changed files with 72 additions and 72 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -23,5 +23,5 @@
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
{{ super() }} {{ super() }}
<script src="{{ 'assets/javascripts/custom.a7283b5f.min.js' | url }}"></script> <script src="{{ 'assets/javascripts/custom.7c807b8d.min.js' | url }}"></script>
{% endblock %} {% endblock %}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -47,7 +47,11 @@
{% endif %} {% endif %}
{% include "partials/icons.html" %} {% include "partials/icons.html" %}
{% endblock %} {% endblock %}
{% block libs %}{% endblock %} {% block libs %}
{% for path in config.extra.polyfills %}
<script src="{{ path | url }}"></script>
{% endfor %}
{% endblock %}
{% block fonts %} {% block fonts %}
{% if config.theme.font != false %} {% if config.theme.font != false %}
{% set text = config.theme.font.text | d("Roboto", true) %} {% set text = config.theme.font.text | d("Roboto", true) %}
@ -240,7 +244,7 @@
</script> </script>
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="{{ 'assets/javascripts/bundle.2a6f1dda.min.js' | url }}"></script> <script src="{{ 'assets/javascripts/bundle.b062512d.min.js' | url }}"></script>
{% for path in config.extra_javascript %} {% for path in config.extra_javascript %}
<script src="{{ path | url }}"></script> <script src="{{ path | url }}"></script>
{% endfor %} {% endfor %}

View File

@ -39,7 +39,6 @@
"upgrade:install": "npm install" "upgrade:install": "npm install"
}, },
"dependencies": { "dependencies": {
"array-flat-polyfill": "^1.0.1",
"clipboard": "^2.0.11", "clipboard": "^2.0.11",
"escape-html": "^1.0.3", "escape-html": "^1.0.3",
"focus-visible": "^5.2.0", "focus-visible": "^5.2.0",
@ -47,10 +46,7 @@
"iframe-worker": "^1.0.3", "iframe-worker": "^1.0.3",
"lunr": "^2.3.9", "lunr": "^2.3.9",
"lunr-languages": "^1.10.0", "lunr-languages": "^1.10.0",
"resize-observer-polyfill": "^1.5.1", "rxjs": "^7.8.0"
"rxjs": "^7.8.0",
"unfetch": "^5.0.0",
"url-polyfill": "^1.1.12"
}, },
"devDependencies": { "devDependencies": {
"@fortawesome/fontawesome-free": "^6.3.0", "@fortawesome/fontawesome-free": "^6.3.0",

View File

@ -20,7 +20,6 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
import ResizeObserver from "resize-observer-polyfill"
import { import {
NEVER, NEVER,
Observable, Observable,

View File

@ -20,10 +20,7 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
import "array-flat-polyfill"
import "focus-visible" import "focus-visible"
import "unfetch/polyfill"
import "url-polyfill"
import { import {
EMPTY, EMPTY,

View File

@ -99,7 +99,11 @@
{% endblock %} {% endblock %}
<!-- JavaScript libraries --> <!-- JavaScript libraries -->
{% block libs %}{% endblock %} {% block libs %}
{% for path in config.extra.polyfills %}
<script src="{{ path | url }}"></script>
{% endfor %}
{% endblock %}
<!-- Webfonts --> <!-- Webfonts -->
{% block fonts %} {% block fonts %}