fixed import

master
宇天 2020-09-17 16:58:56 +08:00
parent c9824a10e0
commit a8d98697b8
3 changed files with 6 additions and 3 deletions

View File

@ -5,7 +5,7 @@
*/
import fs from 'fs'
import Helper from './lib/helper.es7'
import Helper from './lib/helper.mjs'
var __stamp__ = ''
var __inc__ = 1024

View File

@ -1,6 +1,6 @@
{
"name": "crypto.js",
"version": "2.0.0",
"version": "2.0.1",
"description": "原生crypto加密模块的二次封装,简化常用加密函数的使用",
"keywords": [
"md5",
@ -21,5 +21,8 @@
"dependencies": {},
"devDependencies": {},
"main": "index.js",
"module": "index.es.js"
"exports": {
"require": "./index.js",
"import": "./index.mjs"
}
}