Skip to content

Commit

Permalink
Merge pull request #6899 from adroitwhiz/replace-text-encoding
Browse files Browse the repository at this point in the history
ENA-118 Replace text-encoding polyfill with much smaller library, saving 500KB
  • Loading branch information
cwillisf authored Oct 11, 2024
2 parents a994d4d + b78f2e6 commit afdec7e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"css-loader": "5.2.7",
"dapjs": "^2.3.0",
"es6-object-assign": "^1.1.0",
"fastestsmallesttextencoderdecoder": "^1.0.22",
"get-float-time-domain-data": "^0.1.0",
"get-user-media-promise": "^1.1.4",
"immutable": "^3.8.2",
Expand Down Expand Up @@ -94,7 +95,6 @@
"scratch-vm": "^4.5.471",
"startaudiocontext": "^1.2.1",
"style-loader": "4.0.0",
"text-encoding": "^0.7.0",
"to-style": "^1.3.3",
"wav-encoder": "^1.3.0",
"xhr": "^2.5.0"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/default-project/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import costume2 from '!raw-loader!./0fb9be3e8397c983338cb71dc84d0b25.svg?';
const defaultProject = translator => {
let _TextEncoder;
if (typeof TextEncoder === 'undefined') {
_TextEncoder = require('text-encoding').TextEncoder;
_TextEncoder = require('fastestsmallesttextencoderdecoder').TextEncoder;
} else {
_TextEncoder = TextEncoder;
}
Expand Down

0 comments on commit afdec7e

Please sign in to comment.