Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ Object.entries(build.js).forEach(([filename, entry]) => {
),
)
.pipe(header('typeof navigator === "object" && ')) // "Support" SSR (#935)
.pipe(header('typeof document === "object" && ')) // "Support" SSR (#935)
.pipe(
rename({
extname: `.${extension}`,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"homepage": "https://plyr.io",
"author": "Sam Potts <[email protected]>",
"main": "dist/plyr.js",
"module": "dist/plyr.min.mjs",
"jsnext:main": "dist/plyr.min.mjs",
"module": "dist/plyr.min.js",
"jsnext:main": "dist/plyr.min.js",
Comment on lines +8 to +9
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason behind this? This will use the ES5 code.

"browser": "dist/plyr.min.js",
"sass": "src/sass/plyr.scss",
"style": "dist/plyr.css",
Expand Down