From 69019b2df408953387c931d1a7c48a49551c9cb1 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Wed, 28 Dec 2022 00:54:50 +0000 Subject: [PATCH] use browserlist instead of hardcoded babel presets --- extension/babel.config.js | 6 ------ extension/package.json | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/extension/babel.config.js b/extension/babel.config.js index 5f5580d..e34a262 100644 --- a/extension/babel.config.js +++ b/extension/babel.config.js @@ -1,10 +1,4 @@ const presets = [ - [ - '@babel/preset-env', - // https://caniuse.com/usage-table - // TODO ideally should use https://github.com/browserslist/browserslist - {targets: {chrome: 75, firefox: 75}} - ], '@babel/preset-flow', ] const plugins = [] diff --git a/extension/package.json b/extension/package.json index 7f35e4a..081d38d 100644 --- a/extension/package.json +++ b/extension/package.json @@ -15,6 +15,7 @@ "release:cws": "chrome-webstore-upload", "release:amo": "web-ext-submit" }, + "browserslist": ["defaults and supports es6-module"], "repository": { "type": "git", "url": "git+https://github.com/karlicoss/grasp.git"