1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-02 06:32:07 +02:00

fix(rollup): browser globals shouldn't be external (#6954)

This fixes an issue with requirejs where global/window and
global/document were being marked as dependencies. Instead, this makes
sure that the module gets inlines properly and not worked as a dep for
requirejs.

Fixes #6443, #6272, #6212, #5680.
This commit is contained in:
Gary Katsevman 2020-12-11 15:55:27 -05:00 committed by GitHub
parent 5a13e90574
commit 63752f3727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,8 +94,7 @@ const moduleExternals = [
'@babel/runtime'
];
const externals = {
browser: Object.keys(globals.browser).concat([
]),
browser: [],
module(id) {
const result = moduleExternals.some((ext) => id.indexOf(ext) !== -1);