fix: update import paths for Artplayer and plugins in test files

This commit is contained in:
Harvey Zack committed 2025-09-06 14:25:49 +08:00
1 parent 5b1cebb334
commit 23da290357
4 files changed
+6 -11

No files matched your search

+1 -1
View File
@@ -1,3 +1,3 @@
import id from 'artplayer/dist/i18n/id.js'
import id from 'artplayer/i18n/id';
console.log(id)
+2 -7
View File
@@ -1,8 +1,3 @@
import Artplayer from '../packages/artplayer/dist/artplayer.js'
import Artplayer from 'artplayer'
console.log(Artplayer.default.html)
const art = new Artplayer.default({
container: '.artplayer-app',
url: './assets/sample/video.mp4',
})
console.log(Artplayer.html)
+2 -2
View File
@@ -1,5 +1,5 @@
import Artplayer from '../packages/artplayer'
import artplayerPluginDanmuku from '../packages/artplayer-plugin-danmuku'
import Artplayer from 'artplayer'
import artplayerPluginDanmuku from 'artplayer-plugin-danmuku'
const art = new Artplayer({
container: '.artplayer-app',
+1 -1
View File
@@ -64,7 +64,7 @@ function getInstance(art7) {
// ======================== @option ==========================
/**
* @type {import("artplayer/types/option").Option}
* @type {import("../packages/artplayer/types/option").Option}
*/
const option = {