I modified esbuild.js file to include the following code in esbuild.context:
esbuild.js
esbuild.context
loader: { '.html': 'text', // 👈 treat HTML imports as plain text },