From 52377f49699ad996bb11c1447206cc6b8b241ebd Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Fri, 31 May 2024 10:29:10 -0700
Subject: Rename plugin
---
esbuild-server.mjs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/esbuild-server.mjs b/esbuild-server.mjs
index 14741c9..15ee06d 100644
--- a/esbuild-server.mjs
+++ b/esbuild-server.mjs
@@ -109,8 +109,8 @@ const svgUseCacheBust = {
}
};
-const resolveImportedSvg = {
- name: 'resolveImportedSvg',
+const resolveSvgImports = {
+ name: 'resolveSvgImports',
setup(build) {
build.onStart(() => {
console.log("BUILD STARTED");
@@ -174,7 +174,7 @@ const ctx = await esbuild.context({
entryPoints: ['src/index.js', 'src/soldier_record_block.js', 'src/map.js'],
bundle: true,
outdir: 'build',
- plugins: [resolveImportedSvg, externalSvgToInternal],
+ plugins: [resolveSvgImports, externalSvgToInternal],
loader: {
'.svg': 'file'
},
--
cgit v1.2.3