about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2022-05-20 11:39:05 +0900
committerGitHub <noreply@github.com>2022-05-20 04:39:05 +0200
commitdfb9e6dab1b119c907dece5555408c9b98ec8f2c (patch)
treeb4035584254d0950690097605444cfad79787bab
parente925b06721057f83f2e3e8e7bdb21f39318b90a2 (diff)
Disable transpile to older iOS versions (#18462)
-rw-r--r--.browserslistrc9
-rw-r--r--.devcontainer/devcontainer.json3
-rw-r--r--package.json6
3 files changed, 11 insertions, 7 deletions
diff --git a/.browserslistrc b/.browserslistrc
new file mode 100644
index 000000000..d5734664c
--- /dev/null
+++ b/.browserslistrc
@@ -0,0 +1,9 @@
+[production]
+defaults
+not IE 11
+not dead
+
+[development]
+last 1 chrome version
+last 1 firefox version
+last 1 safari version
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 628efc8ec..9d9e54d4f 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -11,7 +11,8 @@
   "extensions": [
     "EditorConfig.EditorConfig",
     "dbaeumer.vscode-eslint",
-    "rebornix.Ruby"
+    "rebornix.Ruby",
+    "webben.browserslist"
   ],
 
   // Use 'forwardPorts' to make a list of ports inside the container available locally.
diff --git a/package.json b/package.json
index 4d44cee2b..90fc54edc 100644
--- a/package.json
+++ b/package.json
@@ -22,12 +22,6 @@
     "type": "git",
     "url": "https://github.com/mastodon/mastodon.git"
   },
-  "browserslist": [
-    "last 2 versions",
-    "not IE 11",
-    "iOS >= 9",
-    "not dead"
-  ],
   "private": true,
   "dependencies": {
     "@babel/core": "^7.17.12",