ui: Ensure encoder.js polyfill is available (#8094)

This commit is contained in:
John Cowen 2020-06-12 14:28:36 +01:00 committed by GitHub
parent cdc249ec1a
commit 8c6b6b4f17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,6 +85,9 @@ module.exports = function(defaults) {
// along with the exports of each module as its value.
// TextEncoder/Decoder polyfill. See assets/index.html
app.import('node_modules/text-encoding/lib/encoding.js', {
outputFile: 'assets/encoding.js',
});
app.import('node_modules/text-encoding/lib/encoding-indexes.js', {
outputFile: 'assets/encoding-indexes.js',
});