Skip to content

Commit

Permalink
changes in build output
Browse files Browse the repository at this point in the history
  • Loading branch information
mudit2108 committed Sep 16, 2024
1 parent 02d06d1 commit c15c8b3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"title": "Player.js",
"name": "@gumlet/player.js",
"version": "2.0.2",
"version": "2.0.3",
"homepage": "http://github.com/gumlet/player.js",
"main": "dist/player.min.js",
"module": "dist/player.min.js",
"repository": {
"type": "git",
"url": "git://github.com/gumlet/player.js.git"
Expand Down
40 changes: 19 additions & 21 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
import core from "./core"
import Player from "./player"
import Receiver from "./receiver"
import MockAdapter from "./adapters/mock"
import VideoJSAdapter from "./adapters/video"
import HTML5Adapter from "./adapters/html"
import core from "./core";
import Player from "./player";
import Receiver from "./receiver";
import MockAdapter from "./adapters/mock";
import VideoJSAdapter from "./adapters/video";
import HTML5Adapter from "./adapters/html";

const playerjs = {
Player,
Receiver,
MockAdapter,
VideoJSAdapter,
HTML5Adapter,
CONTEXT: core.CONTEXT,
VERSION: core.VERSION,
METHODS: core.METHODS,
addEvent: core.addEvent
}
Player,
Receiver,
MockAdapter,
VideoJSAdapter,
HTML5Adapter,
CONTEXT: core.CONTEXT,
VERSION: core.VERSION,
METHODS: core.METHODS,
addEvent: core.addEvent,
};

if (typeof define === 'function' && define.amd) {
define(function () {
return playerjs
})
} else {
// Attach to the window object explicitly
if (typeof window !== "undefined") {
window.playerjs = playerjs;
}

// Export as ES module
export default playerjs;

0 comments on commit c15c8b3

Please sign in to comment.