From c312b3636ae26c1b5bbf099b7e0790cff01ded66 Mon Sep 17 00:00:00 2001 From: Rob Gilson Date: Thu, 9 Jul 2020 14:16:03 -0400 Subject: [PATCH] Added an explicit browserlist for Parcel builds Added a browserlist to indicate support for modern ES. When Parcel detects a library's browserlist is different then the application browser list it will transpile the library to the version of ES required by the application. This allows developers to specify older browsers (eg. ie 11) and have react-async transparently transpiled. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index b82ff1e4..2f1334d1 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "author": "Gert Hengeveld ", "license": "ISC", "homepage": "https://async-library.com", + "browserslist": "last 2 Firefox versions", "repository": "git+https://github.com/async-library/react-async.git", "workspaces": [ "examples/*",