---
title: "Discussion on \"How to build SolidJS application with esbuild\" | Hashnode"
description: "Discussion on \"How to build SolidJS application with esbuild\". I this article, I'll show who to build SolidJS application with esbuild.\nCode generation\nFirst I generate code following the documentation:\n$ npx degit solidjs/templates/js esbuild-solid\nnpx: installed 1 in 0.664s\n> cloned solidjs/templates#HEAD to e..."
url: "https://hashnode.com/posts/how-to-build-solidjs-application-with-esbuild/611366ef2485287288b72229"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to build SolidJS application with esbuild](https://how-to.dev/how-to-build-solidjs-application-with-esbuild?utm_source=hashnode&utm_medium=feed)

I this article, I'll show who to build SolidJS application with esbuild. Code generation First I generate code following the documentation: $ npx degit solidjs/templates/js esbuild-solid npx: installed 1 in 0.664s > cloned solidjs/templates#HEAD to e...

Aug 11, 2021 · 3 min read · how-to.dev  
Read the article

-   [#solid](https://hashnode.com/tag/solid)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#bundling](https://hashnode.com/tag/bundling)

## Written by

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

@marcin-wosinek · Valencia, Spain

  
[View profile](https://hashnode.com/@marcin-wosinek)

JavaScript developer

I'm JS developer with 13 years of professional experience. I'm always happy to teach my craft.

## Responses 1

Markdown supported · ⌘↵ to post

[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!
