From ad72d7382004e0c4ccdf3f4f765a54243414718b Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 17 Jan 2023 14:18:48 -0800 Subject: [PATCH] fix: bundling library using webpack this change ensures "default" conditions are last, fixing the following webpack bundling error: ``` Module not found: Error: Default condition should be last one ``` Re: https://github.com/isaacs/minimatch/pull/190 Credit: @AviVahl Reviewed-by: @isaacs --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 4c7f60d4..1ba5138a 100644 --- a/package.json +++ b/package.json @@ -7,12 +7,12 @@ "exports": { ".": { "import": { - "default": "./dist/mjs/index.js", - "types": "./dist/mjs/index.d.ts" + "types": "./dist/mjs/index.d.ts", + "default": "./dist/mjs/index.js" }, "require": { - "default": "./dist/cjs/src/index-cjs.js", - "types": "./dist/cjs/src/index-cjs.d.ts" + "types": "./dist/cjs/src/index-cjs.d.ts", + "default": "./dist/cjs/src/index-cjs.js" } } },