From 475d2c97a0090f6f212f1e40804393f2836754d0 Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 17 Jan 2023 14:17:53 -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 ac2944b..cd09e50 100644 --- a/package.json +++ b/package.json @@ -17,12 +17,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" } } },