I have a React app using the Dashjs player. I build it with react-scripts build and the app works fine except that it uses dash.all.debug.js instead of dash.all.min.js.
What did I miss?
I have a React app using the Dashjs player. I build it with react-scripts build and the app works fine except that it uses dash.all.debug.js instead of dash.all.min.js.
What did I miss?
Copyright © 2021 Jogjafile Inc.
looks like dashjs module is exporting the debug file as their main file program:
after running
npm install [email protected], i opened./node_modules/dashjs/package.jsonas you can see,
"main": "dist/dash.all.debug.js"is declared as the main entry pointwhen you import the package:
the debug version will be bundled in your final artifact
to change that, you can explicit import the min version:
or open an issue in dashjs repository