diff --git a/Configuration/ESBuild.js b/Configuration/ESBuild.js index f00e620..ce769ba 100644 --- a/Configuration/ESBuild.js +++ b/Configuration/ESBuild.js @@ -2,32 +2,32 @@ import { copy as Copy } from "esbuild-plugin-copy"; import { rm as Remove } from "fs/promises"; const outDir = "Target"; export default { - format: "esm", - minify: true, - outdir: outDir, - bundle: true, - platform: "browser", - target: ["edge104", "esnext"], - plugins: [ - { - name: "Target", - setup: (Build) => - Build.onStart(async () => { - try { - await Remove(outDir, { - recursive: true, - }); - } catch (_Error) {} - }), - }, - Copy({ - resolveFrom: "out", - assets: [ - { - from: "./Source/styles/*.css", - to: "./styles/", - }, - ], - }), - ], + format: "esm", + minify: true, + outdir: outDir, + bundle: true, + platform: "browser", + target: ["edge104", "esnext"], + plugins: [ + { + name: "Target", + setup: (Build) => Build.onStart(async () => { + try { + await Remove(outDir, { + recursive: true, + }); + } + catch (_Error) { } + }), + }, + Copy({ + resolveFrom: "out", + assets: [ + { + from: "./Source/styles/*.css", + to: "./styles/", + }, + ], + }), + ], };