From c642380539c99450d120e8f2c824ebe70ee59fe5 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Tue, 5 Sep 2023 12:31:02 +0300 Subject: [PATCH] squash! --- Configuration/ESBuild.d.ts | 14 +++++----- Configuration/ESBuild.js | 56 +++++++++++++++++++------------------- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/Configuration/ESBuild.d.ts b/Configuration/ESBuild.d.ts index 370a31b..79b5ff5 100644 --- a/Configuration/ESBuild.d.ts +++ b/Configuration/ESBuild.d.ts @@ -1,10 +1,10 @@ declare const _default: { - format: "esm"; - minify: true; - outdir: string; - bundle: true; - platform: "browser"; - target: string[]; - plugins: import("esbuild").Plugin[]; + format: "esm"; + minify: true; + outdir: string; + bundle: true; + platform: "browser"; + target: string[]; + plugins: import("esbuild").Plugin[]; }; export default _default; diff --git a/Configuration/ESBuild.js b/Configuration/ESBuild.js index ce769ba..f00e620 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/", + }, + ], + }), + ], };