From fb16fa80d53e02013e1e9e34005dc28cbeb335ad Mon Sep 17 00:00:00 2001 From: arechaithanya Date: Thu, 16 Apr 2026 20:48:39 +0530 Subject: [PATCH 1/2] docs: improve explanation of why webpack is used --- src/content/guides/getting-started.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/guides/getting-started.mdx b/src/content/guides/getting-started.mdx index 1afec489e728..9bbc74580242 100644 --- a/src/content/guides/getting-started.mdx +++ b/src/content/guides/getting-started.mdx @@ -157,7 +157,7 @@ There are problems with managing JavaScript projects this way: - If a dependency is missing, or included in the wrong order, the application will not function properly. - If a dependency is included but not used, the browser will be forced to download unnecessary code. -Let's use webpack to manage these scripts instead. +Webpack solves these issues by explicitly declaring dependencies and bundling them together. This removes reliance on global variables and ensures scripts are executed in the correct order. ## Creating a Bundle From e8c7f284cdedd16ba3f55a2cda44a1ba3046e23d Mon Sep 17 00:00:00 2001 From: arechaithanya Date: Thu, 16 Apr 2026 21:10:46 +0530 Subject: [PATCH 2/2] docs: improve explanation of why webpack is used --- src/content/guides/getting-started.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/guides/getting-started.mdx b/src/content/guides/getting-started.mdx index 9bbc74580242..73c68da3b445 100644 --- a/src/content/guides/getting-started.mdx +++ b/src/content/guides/getting-started.mdx @@ -182,7 +182,7 @@ To bundle the `lodash` dependency with `index.js`, we'll need to install the lib ```bash # npm -npm install --save lodash +npm install lodash # yarn yarn add lodash