1 parent 70e95ad commit 1f93481Copy full SHA for 1f93481
1 file changed
packages/hub/src/node/utils.ts
@@ -1,5 +1,9 @@
1
import type { ClientScriptEntry } from '../types/docks'
2
-import { toDataURL } from 'mlly'
+import { Buffer } from 'node:buffer'
3
+
4
+function toDataURL(code: string) {
5
+ return `data:text/javascript;base64,${Buffer.from(code).toString('base64')}`
6
+}
7
8
/**
9
* Create a quick `ClientScriptEntry` from an inline function or
0 commit comments