Skip to content

Commit 95e6b15

Browse files
authored
Notice about windows missing glob patterns
1 parent 9b3c033 commit 95e6b15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ Or, in Rails 7+, you can preconfigure your new application to use a specific bun
3636

3737
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.
3838

39+
### Is there a work-around for lack of glob syntax on Windows?
40+
41+
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.
3942

4043
## License
4144

0 commit comments

Comments
 (0)