Skip to content

Commit

Permalink
Sourcemaps are now properly supported
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Nov 15, 2021
1 parent d7b7fd3 commit 3a56487
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ Or, in Rails 7+, you can preconfigure your new application to use a specific bun

## FAQ

### What about source maps?

We're working on a path to bring source-map compatibility to the webpack path, as it's possible to configure that bundler such that the source and the map can be linked together as digested files using Sprockets without double-digesting. This isn't currently possible with esbuild. The recommendation is either to let esbuild produce ES6 outputs (such that you don't even need source maps!) or use webpack if you can't output ES6.

### Is there a work-around for lack of glob syntax on Windows?

The default build script for esbuild relies on the `app/javascript/*.*` glob pattern to compile multiple entrypoints automatically. This glob pattern is not available by default on Windows, so you need to change the build script in `package.json` to manually list the entrypoints you wish to compile.
Expand Down

0 comments on commit 3a56487

Please sign in to comment.