File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 2626 "dependencies" : {
2727 "arraybuffer-loader" : " ^1.0.3" ,
2828 "base64-js" : " 1.3.0" ,
29+ "fastestsmallesttextencoderdecoder" : " ^1.0.7" ,
2930 "js-md5" : " 0.7.3" ,
3031 "minilog" : " 3.1.0" ,
31- "text-encoding" : " 0.7.0" ,
3232 "worker-loader" : " ^2.0.0"
3333 },
3434 "devDependencies" : {
Original file line number Diff line number Diff line change 33let _TextDecoder ;
44let _TextEncoder ;
55if ( typeof TextDecoder === 'undefined' || typeof TextEncoder === 'undefined' ) {
6- // Wait to require text-encoding until we _know_ its needed. This will save
7- // evaluating ~500kb of encoding indices that we do not need to evaluate if
8- // the browser provides TextDecoder and TextEncoder.
6+ // Wait to require the text encoding polyfill until we know it's needed.
97 // eslint-disable-next-line global-require
10- const encoding = require ( 'text-encoding ' ) ;
8+ const encoding = require ( 'fastestsmallesttextencoderdecoder ' ) ;
119 _TextDecoder = encoding . TextDecoder ;
1210 _TextEncoder = encoding . TextEncoder ;
1311} else {
You can’t perform that action at this time.
0 commit comments