1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-27 17:00:54 +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,
"features": features,
"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
} -%}
{%- set translations = app.translations -%}
@ -217,7 +217,7 @@
</script>
{% endblock %}
{% 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"] %}
<script src="{{ path | url }}"></script>
{% 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 %}
{% block scripts %}
{{ super() }}
<script src="{{ 'overrides/assets/javascripts/bundle.a8da887a.min.js' | url }}"></script>
<script src="{{ 'overrides/assets/javascripts/bundle.c978d37b.min.js' | url }}"></script>
{% endblock %}

View File

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