import {run} from '/api/code/takker/UserScriptをbundleするDeno_script/script.ts'; import {BlobToURI} from '/api/code/takker/BlobをData_URIに変換する/script.js'; const {outputFiles} = await run( `https://scrapbox.io/api/code/programming-notes/Data_URLでWeb_Workerを動かす/worker.js`, {}, { charset: 'utf8', bundle: true, minify: true, write: false, // 標準出力やfileにbundleしたコードを出力しない format: 'iife', } ); const code = outputFiles?.[0]?.text ?? ''; const blob = new Blob([code], {type: 'application/javascript'}); console.log(`export const src='${await BlobToURI(blob)}';`);