Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit b57bed7

Browse files
committed
refactor: use quotes instead of stringify
1 parent c45a750 commit b57bed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/loaders.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ let mainThreadPort: MessagePort | undefined;
4242
export const globalPreload: GlobalPreloadHook = ({ port }) => {
4343
mainThreadPort = port;
4444
return `
45-
const require = getBuiltin('module').createRequire(${JSON.stringify(import.meta.url)});
45+
const require = getBuiltin('module').createRequire("${import.meta.url}");
4646
require('@esbuild-kit/core-utils').installSourceMapSupport(port);
4747
port.unref(); // Allows process to exit without waiting for port to close
4848
`;

0 commit comments

Comments
 (0)