From 23c7201ee5ff50463122bf9258c0fb159dbbbc3d Mon Sep 17 00:00:00 2001 From: Avi Vahl Date: Sat, 5 Feb 2022 12:41:24 +0200 Subject: [PATCH] fix: ensure es5 target is bundle-compatible (#55) --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ed96884..ae1f76b 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,10 @@ ], "main": "./loupe.js", "module": "./index.js", - "browser": "./loupe.js", + "browser": { + "./index.js": "./loupe.js", + "util": false + }, "repository": { "type": "git", "url": "https://github.com/chaijs/loupe" @@ -37,7 +40,7 @@ "eslintConfig": { "root": true, "parserOptions": { - "ecmaVersion": "2020" + "ecmaVersion": 2020 }, "env": { "es6": true