Skip to content

Commit

Permalink
Merge pull request #454 from DJDANNY123/modules-build
Browse files Browse the repository at this point in the history
Update module build output to improve compatibility for ESM modules
  • Loading branch information
vscheuber authored Aug 23, 2024
2 parents 9511113 + 99148fe commit b80a68c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"version": "2.1.0",
"type": "commonjs",
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/esm/index.js",
"default": "./dist/esm/index.js"
"import": "./dist/index.mjs",
"default": "./dist/index.mjs"
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({
sourcemap: true,
clean: true,
bundle: true,
legacyOutput: true,
legacyOutput: false,
external: [
// list all the dev dependencies, which do NOT need to be bundled as indicated in package.json (_devDependencies)
'@jest/globals',
Expand Down

0 comments on commit b80a68c

Please sign in to comment.