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:
parent
5a13e90574
commit
63752f3727
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user