UNPKG

equicord-companion

Version:

Equicord Companion is a vscode extension to test Equicord patches & webpack finds right from the comfort of your IDE

25 lines (19 loc) 416 B
import esbuild from "esbuild"; import { commonOpts } from "./common.mjs"; //@ts-check /** * @type {esbuild.BuildOptions} */ const opts = { ...commonOpts } opts.minify = false; opts.sourcemap = "linked" const ctx = await esbuild.context(opts); await ctx.watch() await ctx.serve({ servedir: "./dist", host: "localhost", port: 3000 }) console.log("http://localhost:3000")