mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
refactor(ambilight): [PKG-AMBILIGHT-04] preserve published types and dual CommonJS exports
This commit is contained in:
1 parent
6caee44dbf
commit
959cccf515
30 files changed
+877
-69
No files matched your search
@@ -7,7 +7,7 @@ import { createAmbilightView } from './view'
|
||||
type Option = Parameters<typeof PublicPlugin>[0]
|
||||
type Subscription = ['ready' | 'destroy', () => void]
|
||||
|
||||
export default function artplayerPluginAmbilight(option: Option = {}) {
|
||||
function artplayerPluginAmbilight(option: Option = {}) {
|
||||
return (art: Artplayer) => {
|
||||
let host: Artplayer | null = art
|
||||
let closed = art.isDestroy
|
||||
@@ -123,3 +123,5 @@ export default function artplayerPluginAmbilight(option: Option = {}) {
|
||||
return result
|
||||
}
|
||||
}
|
||||
|
||||
export default Object.assign(artplayerPluginAmbilight, { default: artplayerPluginAmbilight })
|
||||
Reference in new issue
Block a user