Loading files
b6dddf934This file is pinned to the selected release. Download the original to open it in your design tool.
import * as esbuild from 'esbuild'
import { fileURLToPath } from 'node:url'
// The plate worker (src/pair/plateWorker.ts) as one self-contained CommonJS script: the shader, every
// model and the roll bundled in. Both builds define it as `__PLATE_WORKER__`, and harnessd starts it with
// `new Worker(source, { eval: true })` — the release ships a single cli.js, so the worker cannot be a
// file of its own beside it.
export async function plateWorkerSource({ minify = false } = {}) {
const result = await esbuild.build({
entryPoints: [fileURLToPath(new URL('../../src/pair/plateWorker.ts', import.meta.url))],
bundle: true,
write: false,
platform: 'node',
format: 'cjs',
target: 'node20',
minify,
legalComments: 'none',
logLevel: 'silent',
})
return result.outputFiles[0].text
}
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/openharness-1322671404.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
b6dddf934This file is pinned to the selected release. Download the original to open it in your design tool.