// Import first, then load viewer modules with dynamic import(): bare 'three' resolves as in index.html. import { register } from 'node:module'; import { readFileSync } from 'node:fs'; export const HTML = readFileSync(new URL('../index.html', import.meta.url), 'utf8'); export const IMPORTS = JSON.parse(HTML.match(/