File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 14
14
"test" : " tester test/*.js test/*/*.js --outdir=disttest --platform=node --format=esm --bundle --external:sinon --external:zora --target=esnext --sourcemap=inline" ,
15
15
"test:coverage" : " c8 --src src --exclude 'test/**' --exclude 'node_modules/**' --exclude 'scripts/**' --exclude-after-remap npm test" ,
16
16
"test:codecov" : " npm run test:coverage && c8 report --reporter json && codecov -f coverage/coverage-final.json" ,
17
+ "build" : " npm run build:lib && npm run build:lazy && npm run build:dist && npm run build:es6" ,
17
18
"build:demo" : " cp -r examples/react/public demo && npm run build:lib && builder examples/react/src/index.js --format=iife --bundle --outdir=demo --minify --sourcemap" ,
18
19
"build:lib" : " builder src/*.js src/players/*.js --outdir=lib --format=cjs" ,
19
20
"build:lazy" : " builder src/*.js src/players/*.js --outdir=lazy --format=cjs" ,
22
23
"build:es6" : " builder src/standalone.js --outfile=dist/ReactPlayer.standalone.es6.js --format=esm --bundle --minify" ,
23
24
"preversion" : " npm run lint && npm run test" ,
24
25
"version" : " auto-changelog -p && npm run build:dist && npm run build:standalone && git add CHANGELOG.md dist" ,
25
- "prepublishOnly" : " npm run build:lib && npm run build:lazy && npm run build:dist && npm run build:es6 && node scripts/pre-publish.js && cp -r types/* ." ,
26
+ "prepublishOnly" : " npm run build && node scripts/pre-publish.js && cp -r types/* ." ,
26
27
"postpublish" : " node scripts/post-publish.js && npm run clean"
27
28
},
28
29
"repository" : {
69
70
},
70
71
"standard" : {
71
72
"ignore" : [
72
- " /dist/*"
73
+ " /dist/*" ,
74
+ " /examples/*"
73
75
]
74
76
},
75
77
"auto-changelog" : {
Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ export default class Mux extends Component {
76
76
77
77
if ( ! globalThis . customElements ?. get ( 'mux-player' ) ) {
78
78
try {
79
- await import ( SDK_URL . replace ( 'VERSION' , config . version ) )
79
+ const sdkUrl = SDK_URL . replace ( 'VERSION' , config . version )
80
+ await import ( /* webpackIgnore: true */ `${ sdkUrl } ` )
80
81
this . props . onLoaded ( )
81
82
} catch ( error ) {
82
83
onError ( error )
You can’t perform that action at this time.
0 commit comments