You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ If your testing library of choice does not define a `test:prepare` Rake task, en
14
14
15
15
That's it!
16
16
17
-
You can configure your bundler options in the `build` script in `package.json` or via the installer-generated `rollup.config.js` for rollup.js or `webpack.config.json` for Webpack (esbuild does not have a default configuration format).
17
+
You can configure your bundler options in the `build` script in `package.json` or via the installer-generated `rollup.config.js` for rollup.js or `webpack.config.json` for Webpack (esbuild does not have a default configuration format, and we don't intend to use esbuild as an API in order to hack around it).
18
18
19
19
If you're already using [`webpacker`](https://github.com/rails/webpacker) and you're wondering if you should migrate to `jsbundling-rails`, have a look at [the high-level comparison](./docs/comparison_with_webpacker.md).
20
20
@@ -30,6 +30,13 @@ You must already have node and yarn installed on your system. You will also need
30
30
Or, in Rails 7+, you can preconfigure your new application to use a specific bundler with `rails new myapp -j [esbuild|rollup|webpack]`.
31
31
32
32
33
+
## FAQ
34
+
35
+
### What about source maps?
36
+
37
+
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.
38
+
39
+
33
40
## License
34
41
35
42
JavaScript Bundling for Rails is released under the [MIT License](https://opensource.org/licenses/MIT).
0 commit comments