From a8d98697b8a09a3c0b82c6b68a721ec970ed4254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Thu, 17 Sep 2020 16:58:56 +0800 Subject: [PATCH] fixed import --- index.es7 => index.mjs | 2 +- lib/{helper.es7 => helper.mjs} | 0 package.json | 7 +++++-- 3 files changed, 6 insertions(+), 3 deletions(-) rename index.es7 => index.mjs (99%) rename lib/{helper.es7 => helper.mjs} (100%) 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" + } }