We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73a5694 commit 4f965e9Copy full SHA for 4f965e9
src/screen.ts
@@ -1,4 +1,6 @@
1
-import {compressToEncodedURIComponent} from 'lz-string'
+// WARNING: `lz-string` only has a default export but statically we assume named exports are allowd
2
+// TODO: Statically verify we don't rely on NodeJS implicit named imports.
3
+import lzString from 'lz-string'
4
import type {OptionsReceived} from 'pretty-format'
5
import {getQueriesForElement} from './get-queries-for-element'
6
import {getDocument} from './helpers'
@@ -12,7 +14,7 @@ function unindent(string: string) {
12
14
}
13
15
16
function encode(value: string) {
- return compressToEncodedURIComponent(unindent(value))
17
+ return lzString.compressToEncodedURIComponent(unindent(value))
18
19
20
function getPlaygroundUrl(markup: string) {
0 commit comments