bitmovin-player-web-samples
                                
                                
                                
                                    bitmovin-player-web-samples copied to clipboard
                            
                            
                            
                        bug: bundling issue with `vite`
- this PR shows a bug where bundling with 
vite(which usesrollupunder the hood) causes issues when using the modular player - to repro do the following
npm run build npm run serve - access the server at http://localhost:5000/
 - check the error in the browser console
{ "code": 3001, "name": "MODULE_INVALID_DEFINITION", "message": "Missing name", "data": null 
}
                                    
                                    
                                    
                                
hey @rburgst you solved this issue?
we fixed it by using the following function
function getModuleExport(module: unknown): unknown {
    if (isObject(module) && 'default' in module) {
        return module.default;
    }
    return module;
}
...
    Player.addModule(getModuleExport(MP4ContainerModule));
...