Skip to content

Commit 5330ffc

Browse files
indexzerojdalton
authored andcommitted
[fix] Work around tsgo bug that transpiles to exports.encodeComponent = void 0; (#3)
Signed-off-by: indexzero <[email protected]>
1 parent 8c29eac commit 5330ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/encode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
import { isObject } from './objects.js'
1111
import { isNonEmptyString } from './strings.js'
1212

13-
const { encodeURIComponent: encodeComponent } = globalThis
13+
const encodeComponent = globalThis.encodeURIComponent
1414

1515
function encodeName(name: unknown): string {
1616
return isNonEmptyString(name)

0 commit comments

Comments
 (0)