Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-05-31 10:29:10 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-05-31 10:29:10 -0700
commit52377f49699ad996bb11c1447206cc6b8b241ebd (patch)
tree3b13319d432588464a08cbc2e51f2ee1343f5110 /esbuild-server.mjs
parent414fd16298d0e870c71ffbceadec0ea84ca18142 (diff)
Rename plugin
Diffstat (limited to 'esbuild-server.mjs')
-rw-r--r--esbuild-server.mjs6
1 files 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'
},