Skip to content

Commit

Permalink
fix(build): correct package exports
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard committed Jan 27, 2023
1 parent 391fff9 commit 32536f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig({
},
},

minify: false,
legacyExports: true,

rollup: {
plugins: [
Expand All @@ -23,5 +23,5 @@ export default defineConfig({
],
},

tsconfig: 'tsconfig.dist.json'
tsconfig: 'tsconfig.dist.json',
})
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@
".": {
"types": "./dist/react-portable-text.d.ts",
"source": "./src/index.ts",
"import": "./dist/react-portable-text.esm.js",
"require": "./dist/react-portable-text.js",
"node": {
"import": "./dist/react-portable-text.cjs.mjs",
"require": "./dist/react-portable-text.js"
},
"import": "./dist/react-portable-text.esm.js",
"default": "./dist/react-portable-text.esm.js"
}
},
"./package.json": "./package.json"
},
"sideEffects": false,
"engines": {
Expand Down Expand Up @@ -49,7 +54,7 @@
"@portabletext/types": "^2.0.0"
},
"devDependencies": {
"@sanity/pkg-utils": "^1.15.0",
"@sanity/pkg-utils": "^2.2.3",
"@sanity/ui": "1.0.0-beta.32",
"@types/leaflet": "^1.9.0",
"@types/react": "^18.0.24",
Expand Down

0 comments on commit 32536f6

Please sign in to comment.