Skip to content

Instantly share code, notes, and snippets.

@existentialmutt
Last active August 3, 2022 15:58
Show Gist options
  • Select an option

  • Save existentialmutt/a9a6b3d07f11e44a2b14ee60c6321fb9 to your computer and use it in GitHub Desktop.

Select an option

Save existentialmutt/a9a6b3d07f11e44a2b14ee60c6321fb9 to your computer and use it in GitHub Desktop.

Revisions

  1. existentialmutt revised this gist Aug 3, 2022. No changes.
  2. existentialmutt revised this gist Aug 3, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions application.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    import "my-gem"
  3. existentialmutt created this gist Aug 3, 2022.
    4 changes: 4 additions & 0 deletions esbuild.config.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    require("esbuild").build({
    //...
    nodePaths: [process.env.NODE_PATH]
    }).catch(() => process.exit(1));
    4 changes: 4 additions & 0 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    //...
    "scripts": {
    "build": "NODE_PATH=$(bundle show --paths my-gem)/app/javascript node esbuild.config.js"
    }