It appears that the dashjs module is exporting the debug file as its main program file:
Upon executing
npm install <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c9ada8baa1a3ba89baf5ebe5ebe6a5bbe6eba7a3abe6eb">[email protected]</a>
, I accessed
./node_modules/dashjs/package.json
{
"name": "dashjs",
"version": "4.0.0-npm",
"description": "A reference client implementation for the playback of MPEG DASH via Javascript and compliant browsers.",
"author": "Dash Industry Forum",
"license": "BSD-3-Clause",
"main": "dist/dash.all.debug.js",
"types": "index.d.ts",
...
}
It can be observed that
"main": "dist/dash.all.debug.js"
is specified as the primary entry point
When importing the package:
import React, { Component } from 'react';
import dashjs from 'dashjs';
export default class App extends Component { ... }
The debug version will be included in your final bundle
To alter this, you can explicitly import the minified version:
import React, { Component } from 'react';
import dashjs from 'dashjs/dist/dash.all.min.js';
export default class App extends Component { ... }
Alternatively, consider raising an issue in the dashjs repository