mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 17:51:20 -08:00
fix(types): PKG-CHAPTER-04 preserve CJS ESM and legacy consumer contracts
This commit is contained in:
1 parent
48660c4e12
commit
bab80ff886
41 files changed
+1087
-119
No files matched your search
@@ -19,19 +19,36 @@
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./types/artplayer-plugin-chapter.d.ts",
|
||||
"import": "./dist/artplayer-plugin-chapter.mjs",
|
||||
"require": "./dist/artplayer-plugin-chapter.js"
|
||||
"import": {
|
||||
"types": "./types/artplayer-plugin-chapter.d.mts",
|
||||
"default": "./dist/artplayer-plugin-chapter.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./types/artplayer-plugin-chapter.d.cts",
|
||||
"default": "./dist/artplayer-plugin-chapter.js"
|
||||
}
|
||||
},
|
||||
"./legacy": {
|
||||
"types": "./types/artplayer-plugin-chapter.d.ts",
|
||||
"import": "./dist/artplayer-plugin-chapter.legacy.js",
|
||||
"require": "./dist/artplayer-plugin-chapter.legacy.js"
|
||||
"import": {
|
||||
"types": "./types/artplayer-plugin-chapter.d.cts",
|
||||
"default": "./dist/artplayer-plugin-chapter.legacy.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./types/artplayer-plugin-chapter.d.cts",
|
||||
"default": "./dist/artplayer-plugin-chapter.legacy.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"main": "./dist/artplayer-plugin-chapter.js",
|
||||
"module": "./dist/artplayer-plugin-chapter.mjs",
|
||||
"types": "./types/artplayer-plugin-chapter.d.ts",
|
||||
"legacy": "./dist/artplayer-plugin-chapter.legacy.js",
|
||||
"browserslist": "last 1 Chrome version"
|
||||
"browserslist": "last 1 Chrome version",
|
||||
"typesVersions": {
|
||||
"*": {
|
||||
"legacy": [
|
||||
"types/artplayer-plugin-chapter.d.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user