summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.eslintrc.json2
-rwxr-xr-xprocess_static2
2 files changed, 2 insertions, 2 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 97ac8e54..6010be67 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -5,7 +5,7 @@
},
"extends": "eslint:recommended",
"parserOptions": {
- "ecmaVersion": 12,
+ "ecmaVersion": 2021,
"sourceType": "module"
},
"rules": {
diff --git a/process_static b/process_static
index 1edd56d1..25917aa4 100755
--- a/process_static
+++ b/process_static
@@ -15,7 +15,7 @@ for file in static_tmp/**/*.@(json|webmanifest); do
done
find static_tmp -name '*.css' -exec csso {} -o {} \;
-find static_tmp -name '*.js' -exec terser --module -cmo {} {} \;
+find static_tmp -name '*.js' -exec terser --ecma 2021 --module -cmo {} {} \;
replace=""
for file in static_tmp/**/*.css static_tmp/js/*.js static_tmp/mask-icon.svg; do