From 3ff0ac70970fa1065c1c1d3f770b07b80a7a20c4 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 29 Jun 2021 02:42:39 -0400 Subject: [PATCH] use ECMAScript 2021 --- .eslintrc.json | 2 +- process_static | 2 +- 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