diff --git a/packages/wouter-preact/package.json b/packages/wouter-preact/package.json index 147c5a7..94936d4 100644 --- a/packages/wouter-preact/package.json +++ b/packages/wouter-preact/package.json @@ -17,6 +17,7 @@ "types/**/*.d.ts", "types/*.d.ts" ], + "main": "esm/index.js", "exports": { ".": { "types": "./types/index.d.ts", @@ -73,4 +74,4 @@ "devDependencies": { "wouter": "*" } -} +} \ No newline at end of file diff --git a/packages/wouter/package.json b/packages/wouter/package.json index bd8512c..9ab98a8 100644 --- a/packages/wouter/package.json +++ b/packages/wouter/package.json @@ -17,6 +17,7 @@ "types/**/*.d.ts", "types/*.d.ts" ], + "main": "esm/index.js", "exports": { ".": { "types": "./types/index.d.ts", @@ -71,4 +72,4 @@ "regexparam": "^3.0.0", "use-sync-external-store": "^1.0.0" } -} +} \ No newline at end of file