From 3a564877f533e11a894bb4520a0866517cd9e50b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 15 Nov 2021 17:06:31 +0100 Subject: [PATCH] Sourcemaps are now properly supported --- README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/README.md b/README.md index 0fbb71e..d7b511f 100644 --- a/README.md +++ b/README.md @@ -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.