浏览代码

在package.json中添加"type": "module"字段以支持ES模块

zhuf 6 月之前
父节点
当前提交
cec0f52d9e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      package.json

+ 1 - 0
package.json

@@ -3,6 +3,7 @@
   "version": "1.0.0",
   "description": "",
   "main": "index.js",
+  "type": "module",
   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1"
   },