From 84ebcc2ef1b3eed12adfa0b53c1ac6b0db0a4d9f Mon Sep 17 00:00:00 2001 From: Deeksha Varshney Date: Thu, 20 Nov 2025 10:27:45 +0530 Subject: [PATCH 1/2] docs: Update Getting Started guide to ES Modules syntax --- src/content/guides/getting-started.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/guides/getting-started.mdx b/src/content/guides/getting-started.mdx index 79ef48512356..c09b48c96809 100644 --- a/src/content/guides/getting-started.mdx +++ b/src/content/guides/getting-started.mdx @@ -250,9 +250,9 @@ As of version 4, webpack doesn't require any configuration, but most projects wi **webpack.config.js** ```javascript -const path = require('path'); +import path from 'path'; -module.exports = { +export default { entry: './src/index.js', output: { filename: 'main.js', From 81bb7aa747e518f0283e28414c8e590d16391cd9 Mon Sep 17 00:00:00 2001 From: Deeksha Varshney Date: Thu, 20 Nov 2025 11:14:01 +0530 Subject: [PATCH 2/2] docs: Update Asset Management guide to ES Modules syntax (fixes #7636) --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 8a191d76f306..4e926b5d4fcd 100644 --- a/package.json +++ b/package.json @@ -152,6 +152,7 @@ "dependencies": { "@docsearch/react": "^3.9.0", "@react-spring/web": "^9.7.5", + "ajv-keywords": "^3.5.2", "path-browserify": "^1.0.1", "prop-types": "^15.8.1", "react": "^17.0.2",