File extension for the build script should be `.mjs` when using `import` keyword. [esbuild Documentation](https://esbuild.github.io/getting-started/#build-scripts) 
File extension for the build script should be
.mjswhen usingimportkeyword.esbuild Documentation