We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76bf094 commit 49a1abfCopy full SHA for 49a1abf
src/index.ts
@@ -1,9 +1,14 @@
1
// Adds @kitajs/html's Html globally.
2
-import '@kitajs/html/register'
+// @ts-expect-error - When running from a compiled bun version,
3
+// this will fail because /register will be stripped out if not
4
+// used. This is just a workaround to make it work.
5
+import { noop } from '@kitajs/html/register'
6
+try {
7
+ noop()
8
+} catch {}
9
10
export * from './html'
11
export * from './options'
12
export * from './utils'
13
-// We cannot use `export * as Html` because @kitajs/html uses `export =`
-export const Html = require('@kitajs/html') as typeof import('@kitajs/html')
14
+export { Html } from '@kitajs/html'
0 commit comments