marchyang cb99a6fff5 fix: 修复缺少buffer依赖,导致单独使用@tmagic/editor出现报错,无法运行的问题
safe-buffer是一个server端的库,使用了nodejs自带的buffer包,不支持浏览器环境,因此导致在运行时报错. 为解决此问题需要引入npm第三方包buffer来兼容浏览器环境.
2022-04-28 16:55:10 +08:00

80 lines
2.0 KiB
JSON

{
"version": "1.0.0-beta.13",
"name": "@tmagic/editor",
"sideEffects": false,
"main": "dist/tmagic-editor.umd.js",
"module": "dist/tmagic-editor.es.js",
"style": "dist/style.css",
"types": "dist/types/src/index.d.ts",
"exports": {
".": {
"import": "./dist/tmagic-editor.es.js",
"require": "./dist/tmagic-editor.umd.js"
},
"./dist/style.css": {
"import": "./dist/style.css",
"require": "./dist/style.css"
}
},
"license": "Apache-2.0",
"scripts": {
"build": "vite build",
"test": "jest --maxWorkers=8",
"test:coverage": "jest --maxWorkers=16 --coverage"
},
"engines": {
"node": ">=14"
},
"repository": {
"type": "git",
"url": "https://github.com/Tencent/tmagic-editor.git"
},
"homepage": "https://tencent.github.io/tmagic-editor/docs/",
"keywords": [
"editor",
"drag",
"resize",
"vue",
"vue3",
"typescript"
],
"dependencies": {
"@element-plus/icons": "0.0.11",
"@tmagic/core": "^1.0.0-beta.13",
"@tmagic/form": "^1.0.0-beta.13",
"@tmagic/schema": "^1.0.0-beta.13",
"@tmagic/stage": "^1.0.0-beta.13",
"@tmagic/utils": "^1.0.0-beta.13",
"buffer": "^6.0.3",
"color": "^3.1.3",
"element-plus": "^2.1.7",
"events": "^3.3.0",
"keycon": "^1.1.2",
"lodash-es": "^4.17.21",
"monaco-editor": "^0.32.1",
"serialize-javascript": "^6.0.0",
"vue": "^3.2.0"
},
"devDependencies": {
"@types/events": "^3.0.0",
"@types/jest": "^26.0.23",
"@types/lodash-es": "^4.17.4",
"@types/node": "^15.12.4",
"@types/serialize-javascript": "^5.0.1",
"@vitejs/plugin-vue": "^1.2.3",
"@vitejs/plugin-vue-jsx": "^1.1.6",
"@vue/compiler-sfc": "^3.2.0",
"@vue/test-utils": "^2.0.0-rc.20",
"@vue/vue3-jest": "^27.0.0-alpha.4",
"jest": "^27.5.1",
"jest-serializer-vue": "^2.0.2",
"jest-transform-stub": "^2.0.0",
"sass": "^1.35.1",
"ts-jest": "^27.1.4",
"typescript": "^4.3.4",
"vite": "^2.3.7",
"vite-plugin-dts": "^0.9.6",
"vue-tsc": "^0.0.24"
}
}