codemirror-editor-vue3 icon indicating copy to clipboard operation
codemirror-editor-vue3 copied to clipboard

需要修复package.json文件中的exports字段

Open kaokei opened this issue 1 year ago • 1 comments
trafficstars

Describe the bug

目前的package.json的exports字段是有点问题的。 image

可以参考以下代码片段。

  "exports": {
    ".": {
      "import": {
        "types": "./dist/packages/index.d.ts",
        "default": "./dist/codemirror-editor-vue3.js"
      },
      "require": {
        "types": "./dist/packages/index.d.ts",
        "default": "./dist/codemirror-editor-vue3.umd.cjs"
      }
    }
  },

Validations

  • [X] Read the docs.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

kaokei avatar Apr 30 '24 06:04 kaokei

感谢指正,我会尽快修复这个问题

rennzhang avatar Apr 30 '24 06:04 rennzhang

你好,请问您的typescript 以及其他依赖是什么版本呢?

目前我的环境未能复现,依赖版本如下:

    "typescript": "~5.4.3",
    "vue": "^3.4.21",
    "codemirror-editor-vue3": "^2.5.8",
    "codemirror": "^5",
    "vite": "^5.2.10",

rennzhang avatar May 06 '24 02:05 rennzhang

好像没看出来区别。那就先不管了吧,不影响开发。

kaokei avatar May 06 '24 07:05 kaokei