Skip to content

Commit

Permalink
fixed import for commonjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kipicenko committed Jun 10, 2024
1 parent ac18cfe commit eb7cc59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"types": "./dist/types/index.d.ts",
"exports": {
"types": "./dist/types/index.d.ts",
"require": "./dist/cjs/index.js",
"require": "./dist/cjs/index.cjs",
"import": "./dist/esm/index.js"
},
"sideEffects": false,
Expand Down
1 change: 1 addition & 0 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const build_cjs: RollupOptions = {
dir: "dist/cjs",
format: "cjs",
exports: "named",
entryFileNames: "[name].cjs",
preserveModules: true,
},
plugins: [
Expand Down

0 comments on commit eb7cc59

Please sign in to comment.