Skip to content

An opinionated toast component for React.

Update exports in package.json (#161)

Emil Kowalski66db9783d611
diff --git a/package.json b/package.json
index 19f1816..8cfb134 100644
--- a/package.json
+++ b/package.json
@@ -3,9 +3,14 @@
"version": "1.0.3",
"description": "An opinionated toast component for React.",
"exports": {
- "types": "./dist/index.d.ts",
- "import": "./dist/index.mjs",
- "require": "./dist/index.js"
+ "import": {
+ "default": "./dist/index.mjs",
+ "types": "./dist/index.d.ts"
+ },
+ "require": {
+ "default": "./dist/index.js",
+ "types": "./dist/index.d.ts"
+ }
},
"types": "./dist/index.d.ts",
"files": [