build: ENG-06 support TS entries and preserve AMD globals

This commit is contained in:
Harvey Zhao committed 2026-09-10 21:47:10 +08:00
1 parent 771482426f
commit b53461da1c
23 files changed
+1046 -65

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import css from './style.less?inline'
import svg from './icon.svg?raw'
import InlineWorker from './worker.ts?worker&inline'
import { add } from './shared.js'
interface Options {
label?: string
}
export default function buildProbe(options: Options = {}) {
return {
label: options.label ?? 'default',
value: add(20, 22),
css,
svg,
createWorker: () => new InlineWorker(),
}
}