From 85f7e96f758e95dee5211b9bca1a173b8fb3abe9 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Wed, 9 Mar 2022 01:42:04 +0700 Subject: [PATCH] Add `main` field to package.json for backwards compatibiltiy Fixes #536 --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index f693c87..d3d644b 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "repository": "chalk/chalk", "funding": "https://github.com/chalk/chalk?sponsor=1", "type": "module", + "main": "./source/index.js", "exports": "./source/index.js", "imports": { "#ansi-styles": "./source/vendor/ansi-styles/index.js",