diff --git a/index.es7 b/index.mjs similarity index 99% rename from index.es7 rename to index.mjs index f0b3cff..53c5e74 100644 --- a/index.es7 +++ b/index.mjs @@ -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 diff --git a/lib/helper.es7 b/lib/helper.mjs similarity index 100% rename from lib/helper.es7 rename to lib/helper.mjs diff --git a/package.json b/package.json index 2736aa1..3146386 100644 --- a/package.json +++ b/package.json @@ -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" + } }