Skip to content

Commit

Permalink
perf!: default export to be base videoPlayer (#588)
Browse files Browse the repository at this point in the history
* perf!: default export to be base videoPlayer

BREAKING CHANGE: the default ES import is now only the player core
plugins need to be explicitly imported

* chore: ignore sourcemaps
  • Loading branch information
tsi authored Mar 20, 2024
1 parent 46bc7a1 commit 259cb24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
11 changes: 0 additions & 11 deletions .npmignore

This file was deleted.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@
"description": "Cloudinary Video Player",
"author": "Cloudinary",
"license": "MIT",
"module": "./lib/videoPlayer.js",
"main": "./dist/cld-video-player.min.js",
"module": "./lib/cld-video-player.js",
"style": "./dist/cld-video-player.min.css",
"types": "./types/cld-video-player.d.ts",
"files": [
"dist",
"lib",
"types",
"LICENSE",
"README.md"
"README.md",
"!**/*.map"
],
"exports": {
".": {
"import": "./lib/cld-video-player.js",
"import": "./lib/videoPlayer.js",
"require": "./dist/cld-video-player.js",
"types": "./types/cld-video-player.d.ts"
},
Expand Down

0 comments on commit 259cb24

Please sign in to comment.