1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 07:30:12 +01:00

Set transpile target to es2015

This commit is contained in:
squidfunk 2021-02-26 12:31:05 +01:00
parent 8f4a445b4e
commit 500d5e6f74
11 changed files with 61 additions and 60 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

@ -191,7 +191,7 @@
"base": base_url, "base": base_url,
"features": features, "features": features,
"translations": {}, "translations": {},
"search": "assets/javascripts/workers/search.f5903571.min.js" | url, "search": "assets/javascripts/workers/search.31ff4e5f.min.js" | url,
"version": config.extra.version or None "version": config.extra.version or None
} -%} } -%}
{%- set translations = app.translations -%} {%- set translations = app.translations -%}
@ -217,7 +217,7 @@
</script> </script>
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="{{ 'assets/javascripts/bundle.3981fc68.min.js' | url }}"></script> <script src="{{ 'assets/javascripts/bundle.216d634c.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 %}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -53,5 +53,5 @@
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
{{ super() }} {{ super() }}
<script src="{{ 'overrides/assets/javascripts/bundle.a8da887a.min.js' | url }}"></script> <script src="{{ 'overrides/assets/javascripts/bundle.c978d37b.min.js' | url }}"></script>
{% endblock %} {% endblock %}

View File

@ -161,6 +161,7 @@ export function transformScript(
): Observable<string> { ): Observable<string> {
return defer(() => esbuild({ return defer(() => esbuild({
entryPoints: [options.from], entryPoints: [options.from],
target: "es2015",
write: false, write: false,
bundle: true, bundle: true,
sourcemap: true, sourcemap: true,