We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51551cf commit 286f44eCopy full SHA for 286f44e
scripts/build.mjs
@@ -62,14 +62,13 @@ async function main() {
62
{
63
...pkg,
64
files: ["dist-*/**", "bin/**"],
65
- // Tooling currently are having issues with the "exports" field, ex: TypeScript, eslint
66
- // We add a `main` and `types` field to the package.json for the time being
67
- main: "dist-bundle/index.js",
68
types: "dist-types/index.d.ts",
69
exports: {
70
".": {
71
types: "./dist-types/index.d.ts",
72
import: "./dist-bundle/index.js",
+ // Tooling currently are having issues with the "exports" field when there is no "default", ex: TypeScript, eslint
+ default: "./dist-bundle/index.js"
73
},
74
75
sideEffects: false,
0 commit comments