1
0
mirror of synced 2026-03-22 18:48:34 +08:00

build: es产物不要合并文件,保证能够tree-shaking

This commit is contained in:
roymondchen
2026-03-18 19:19:29 +08:00
parent 92bd5cf942
commit 88e6c7d377
17 changed files with 54 additions and 32 deletions

View File

@@ -4,16 +4,17 @@
"type": "module",
"sideEffects": [
"dist/style.css",
"dist/es/style.css",
"src/theme/*"
],
"main": "dist/tmagic-editor.umd.cjs",
"module": "dist/tmagic-editor.js",
"module": "dist/es/index.js",
"style": "dist/style.css",
"types": "types/index.d.ts",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./dist/tmagic-editor.js",
"import": "./dist/es/index.js",
"require": "./dist/tmagic-editor.umd.cjs"
},
"./dist/style.css": {