From 186932f22bb59f43770df55ee46e0f968a874405 Mon Sep 17 00:00:00 2001 From: wener Date: Fri, 9 Sep 2022 10:44:00 +0800 Subject: [PATCH] reaction v1.2.8 remove default exports, try fix build for nextjs https://github.com/vercel/next.js/issues/39375 --- packages/reaction/package.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/reaction/package.json b/packages/reaction/package.json index d1ffaac9..62ec9510 100644 --- a/packages/reaction/package.json +++ b/packages/reaction/package.json @@ -1,6 +1,6 @@ { "name": "@wener/reaction", - "version": "1.2.7", + "version": "1.2.8", "description": "React hooks, utils & reaction", "keywords": [ "components", @@ -24,14 +24,13 @@ "exports": { ".": { "types": "./src/index.ts", - "development": "./dist/esm/wener-reaction.development.js", + "development": "./src/index.ts", "import": "./lib/esm/index.js", "system": { "development": "./disk/system/wener-reaction.development.js", "default": "./disk/system/wener-reaction.min.js" }, - "require": "./lib/cjs/index.js", - "default": "./lib/esm/index.js" + "require": "./lib/cjs/index.js" }, "./types": { "types": "./src/types.d.ts" @@ -39,6 +38,8 @@ "./src/*": "./src/*", "./package.json": "./package.json" }, + "main": "lib/cjs/index.js", + "import": "lib/esm/index.js", "types": "src/index.ts", "files": [ "src",