Skip to content

Commit 0a40f6e

Browse files
authored
Merge pull request rails#51437 from CodingItWrong/js-page-typos
Typo fixes on JS page [ci skip]
2 parents f9c262b + fba3763 commit 0a40f6e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

guides/source/working_with_javascript_in_rails.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Rails.
1010
After reading this guide, you will know:
1111

1212
* How to use Rails without the need for a Node.js, Yarn, or a JavaScript bundler.
13-
* How to create a new Rails application using import maps, bun, esbuild, rollup, or webpack to bundle
13+
* How to create a new Rails application using import maps, Bun, esbuild, Rollup, or Webpack to bundle
1414
your JavaScript.
1515
* What Turbo is, and how to use it.
1616
* How to use the Turbo HTML helpers provided by Rails.
@@ -68,9 +68,9 @@ Adding npm Packages with JavaScript Bundlers
6868
Import maps are the default for new Rails applications, but if you prefer traditional JavaScript
6969
bundling, you can create new Rails applications with your choice of
7070
[Bun](https://bun.sh), [esbuild](https://esbuild.github.io/),
71-
[webpack](https://webpack.js.org/), or [rollup.js](https://rollupjs.org/guide/en/).
71+
[Webpack](https://webpack.js.org/), or [Rollup.js](https://rollupjs.org/guide/en/).
7272

73-
To use a bundler instead of import maps in a new Rails application, pass the `javascript` or `-j`
73+
To use a bundler instead of import maps in a new Rails application, pass the `--javascript` or `-j`
7474
option to `rails new`:
7575

7676
```bash
@@ -87,7 +87,7 @@ development.
8787

8888
### Installing a JavaScript Runtime
8989

90-
If you are using a esbuild, rollup.js or Webpack, to bundle your JavaScript in
90+
If you are using esbuild, Rollup.js, or Webpack to bundle your JavaScript in
9191
your Rails application, Node.js and Yarn must be installed. If you are using
9292
Bun, then you just need to install Bun as it is both a JavaScript runtime and a bundler.
9393

@@ -103,11 +103,11 @@ $ bun --version
103103
The version of your Bun runtime should be printed out. If it says something
104104
like `1.0.0`, Bun has been installed correctly.
105105

106-
If not, you may need to reinstall bun in the current directory or restart your terminal.
106+
If not, you may need to reinstall Bun in the current directory or restart your terminal.
107107

108108
#### Installing Node.js and Yarn
109109

110-
If you are using esbuild, rollup.js or Webpack you will need Node.js and Yarn.
110+
If you are using esbuild, Rollup.js, or Webpack you will need Node.js and Yarn.
111111

112112
Find the installation instructions at the [Node.js website](https://nodejs.org/en/download/) and
113113
verify it’s installed correctly with the following command:

0 commit comments

Comments
 (0)