Rename plugin

This commit is contained in:
Catalin Constantin Mititiuc 2025-06-16 22:41:31 -07:00
parent 28982050fd
commit 7aeeea879b

View File

@ -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'
},