import { build, stop } from 'https://deno.land/x/esbuild@v0.12.15/mod.js'; //import { GasPlugin } from "https://esm.sh/esbuild-gas-plugin@0.1.0"; import GasPlugin from "https://raw.githubusercontent.com/takker99/esbuild-gas-plugin/feature/deno/mod.ts"; import { dirname } from "https://deno.land/std@0.100.0/path/mod.ts"; import httpFetch from 'https://deno.land/x/esbuild_plugin_http_fetch@v1.0.2/index.js'; await build({ stdin: { contents: `import "${dirname(import.meta.url)}/index.ts";`, loader: 'ts', }, platform: 'neutral', bundle: true, minify: true, outfile: 'dist/index.bundle.js', plugins: [httpFetch, GasPlugin], }); console.log(await Deno.readTextFile('dist/index.bundle.js')); stop();