Skip to content

Commit

Permalink
fix: fix esm bundle error
Browse files Browse the repository at this point in the history
  • Loading branch information
olamide203 committed Aug 26, 2022
1 parent 0c52f44 commit 0f1409f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"description": "A simple math expression parser and evaluator",
"version": "1.0.5",
"main": "./dist/cjs/hyoka.js",
"module": "./dist/esm/hyoka.js",
"module": "./dist/esm/hyoka.mjs",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/hyoka.js",
"import": "./dist/esm/hyoka.js",
"import": "./dist/esm/hyoka.mjs",
"types": "./dist/types/index.d.ts"
}
},
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default [{
}, {
input: 'build/Expression.js',
output: [{
file: 'dist/esm/hyoka.js',
file: 'dist/esm/hyoka.mjs',
format: 'esm',
},
{
Expand Down

0 comments on commit 0f1409f

Please sign in to comment.