esbuild

Open
#1,318 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, rails
Domain
build-system

Research direction

Start with package.json and the reported esbuild command, focusing on the --loader:.js=jsx option and the app/javascript to app/assets/builds path. Reproduce the build with that option and verify that the expected JavaScript files are emitted to the builds folder.

Written by the indexing model from the issue text.

Description

discussion

I'm launching the esbuild script with the following line in package.json:
"build": "esbuild app/javascript/. --bundle --sourcemap --outdir=app/assets/builds --public-path=assets --loader:.js=jsx --platform=node",
With the loader option set to .js=jsx none of my js files get output to the builds folder

Dominant language
JavaScript
Stars
6.8k
Forks
739
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from reactjs/react-rails

All issues in reactjs/react-rails

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.