---
title: "Comment by BenVida on \"How to build SolidJS application with esbuild\" | Hashnode"
description: "Perfect timing! I just had a question on this and your article solved the problem I had! I tried and it works beautifully! Just a couple of minor improvements:"
url: "https://hashnode.com/posts/how-to-build-solidjs-application-with-esbuild/611366ef2485287288b72229/comment/6114cb31611d5c199a2fb8cd"
---

[Discussion](https://hashnode.com/posts/how-to-build-solidjs-application-with-esbuild/611366ef2485287288b72229)

Comment [How to build SolidJS application with esbuild](https://hashnode.com/posts/how-to-build-solidjs-application-with-esbuild/611366ef2485287288b72229)

[BenVida](https://hashnode.com/@lacikawiz)

[Aug 12, 2021](https://hashnode.com/posts/how-to-build-solidjs-application-with-esbuild/611366ef2485287288b72229/comment/6114cb31611d5c199a2fb8cd)

Perfect timing! I just had a question on this and your article solved the problem I had! I tried and it works beautifully!

Just a couple of minor improvements:

-   The build script can be made a simple executable by adding `!/usr/bin/env node` as the first line and then running `chmod +x build.js`
-   After this the `scripts` section in `package.json` can be updated to run this script when `npm run build` is called:
    
    ```
    "scripts": {
      "start": "vite",
      "dev": "vite",
      "build": "./build.js",
      "serve": "vite preview"
    },
    ```
    

For typescript, I found that I simply needed to change the `entryPoints` value to `entryPoints: ["src/index.tsx"],`.

[Marcin Wosinek](https://hashnode.com/@marcin-wosinek)

[Aug 12, 2021](https://hashnode.com/posts/how-to-build-solidjs-application-with-esbuild/611366ef2485287288b72229/comment/6114cb31611d5c199a2fb8cd#reply-611555cce249483e1210f649)

thanks for sharing!
