We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TextEncoder
jsdom
1 parent f7d7b8b commit 250889aCopy full SHA for 250889a
packages/browser/test/package/npm-build.js
@@ -1,10 +1,14 @@
1
/* eslint-disable no-console */
2
const fs = require('fs');
3
const path = require('path');
4
+const { TextEncoder } = require('util');
5
6
const webpack = require('webpack');
7
const { JSDOM } = require('jsdom');
8
9
+// This is a workaround for https://github.com/jsdom/jsdom/issues/2524
10
+global.TextEncoder = TextEncoder;
11
+
12
webpack(
13
{
14
entry: path.join(__dirname, 'test-code.js'),
0 commit comments