Skip to content

Commit b0a958e

Browse files
authored
fix: Remove unresolvable url module import (#515)
* Use globals instead of node package * Use implied global
1 parent 4fda461 commit b0a958e

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/components/CodeBlock/GraphQLPlaygroundAction.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
import url from 'url';
2-
31
import { IconVideo, Text, TextLink } from 'braid-design-system';
42
import React from 'react';
53

64
import { SIZE_TO_SMALLER, type Size } from '../../private/size';
75

8-
const URL = url.URL ?? window.URL;
9-
106
interface Props {
117
query: string;
128
variables: string | undefined;

src/private/url.ts

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
import url from 'url';
2-
3-
const URL = url.URL ?? window.URL;
4-
const URLSearchParams = url.URLSearchParams ?? window.URLSearchParams;
5-
61
const EXAMPLE_BASE_URL = 'https://example.com';
72

83
const parseVersionParams = (search: string) => {

0 commit comments

Comments
 (0)