Rename plugin

This commit is contained in:
Catalin Constantin Mititiuc 2024-05-31 10:29:10 -07:00
parent 414fd16298
commit 52377f4969

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