Skip to content

Commit

Permalink
🐛 fix(@ims-utils): use esmodules
Browse files Browse the repository at this point in the history
  • Loading branch information
eternallycyf committed Dec 8, 2023
1 parent 23d449c commit 597ea52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
},
"devDependencies": {
"@babel/runtime": "^7.23.1",
"@types/js-cookie": "^3.0.6"
"@types/js-cookie": "^3.0.6",
"@types/crypto-js": "^4.1.1"
},
"peerDependencies": {
"lodash": "^4.17.21",
Expand All @@ -36,4 +37,4 @@
"access": "public",
"registry": "https://registry.npmjs.org"
}
}
}
2 changes: 1 addition & 1 deletion packages/utils/src/ase/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const CryptoJS = require('crypto-js');
import * as CryptoJS from 'crypto-js';

const DEFAULT_KEY = {
SHARE_KEY: 'ase',
Expand Down

0 comments on commit 597ea52

Please sign in to comment.