From 259cb24ab1226f8c9c8cd720588c8748ee8f9b6b Mon Sep 17 00:00:00 2001 From: Tsachi Shlidor Date: Wed, 20 Mar 2024 12:12:01 +0200 Subject: [PATCH] perf!: default export to be base videoPlayer (#588) * 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 --- .npmignore | 11 ----------- package.json | 7 ++++--- 2 files changed, 4 insertions(+), 14 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index c3a43345..00000000 --- a/.npmignore +++ /dev/null @@ -1,11 +0,0 @@ -!dist/ -static/ -webpack/ -yarn.lock - -.agignore -.babelrc -.eslintrc.js -.npmignore -.tern-port -.tern-project diff --git a/package.json b/package.json index ef4c8c51..5aaa76e0 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "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": [ @@ -13,11 +13,12 @@ "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" },