From b4228bf08a843f1d29a76ff74e35702cb790a16b Mon Sep 17 00:00:00 2001 From: Dan McCarthy Date: Sun, 29 Mar 2026 19:29:44 -0400 Subject: [PATCH] fix: conflicting info about commonjs support Removed line that states Deno supports ECMAScript exclusively as that isn't true and conflict with other parts of the docs (https://docs.deno.com/runtime/fundamentals/node/#commonjs-support). Additionally rewrote the first sentence to change 'you'll need to update' to 'you should consider updating'. --- examples/tutorials/cjs_to_esm.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/tutorials/cjs_to_esm.md b/examples/tutorials/cjs_to_esm.md index 3807e3be5..1fdf96f2a 100644 --- a/examples/tutorials/cjs_to_esm.md +++ b/examples/tutorials/cjs_to_esm.md @@ -7,14 +7,13 @@ oldUrl: - /runtime/tutorials/cjs_to_esm/ --- -If your Node.js project uses CommonJS modules (e.g. it uses `require`), you'll -need to update your code to use -[ECMAScript modules (ESM)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) -to run it in Deno. This guide will help you update your code to use ESM syntax. +If your Node.js project uses CommonJS modules (e.g. it uses `require`), you +should consider updating your code to use +[ECMAScript modules (ESM)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules). +This guide will help you update your code to use ESM syntax. ## Module imports and exports -Deno supports [ECMAScript modules](/runtime/fundamentals/modules/) exclusively. If your Node.js code uses [`require`](https://nodejs.org/api/modules.html#modules-commonjs-modules), you should update it to use `import` statements instead. If your internal code uses