Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yukikurage committed Nov 13, 2024
1 parent 8ca8c12 commit 38c55da
Show file tree
Hide file tree
Showing 17 changed files with 5,650 additions and 9,293 deletions.
6 changes: 4 additions & 2 deletions entry.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const Main = require("./output/Main/index.js")
import { main } from "./output/Main/index.js"

Main.main()
console.log("Starting App...")

main()
13 changes: 13 additions & 0 deletions esbuild.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import esbuild from "esbuild"

esbuild.build({
entryPoints: ["entry.js"],
outfile: "public/index.js",
bundle: true,
platform: "node",
format: "esm",
target: "esnext",
minify: true,
sourcemap: false,
treeShaking: true,
});
19 changes: 19 additions & 0 deletions esbuildWatch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import esbuild from "esbuild"

async function watch() {
let ctx = await esbuild.context({
entryPoints: ["entry.js"],
outfile: "public/index.js",
bundle: true,
platform: "node",
format: "esm",
target: "esnext",
minify: false,
sourcemap: false,
treeShaking: false,
});
await ctx.watch();
console.log('Watching...');
}

watch();
Loading

0 comments on commit 38c55da

Please sign in to comment.