From 9eb1cfa702eadc6fd9d4e09d604c730c3402e339 Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Thu, 23 Jul 2026 16:59:12 -0700 Subject: [PATCH 1/4] fix(homepage): align code boxes --- pages/index.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pages/index.md b/pages/index.md index 191eb0fb..05c174aa 100644 --- a/pages/index.md +++ b/pages/index.md @@ -31,7 +31,7 @@ deno add npm:webpack npm:webpack-cli ```javascript displayName="webpack.config.js" -const path = require('path'); +const path = require('node:path'); module.exports = { entry: './src/index.js', @@ -41,10 +41,11 @@ module.exports = { }, mode: 'production', }; + ``` ```javascript displayName="webpack.config.mjs" -import path from 'path'; +import path from 'node:path'; export default { entry: './src/index.js', @@ -54,22 +55,21 @@ export default { }, mode: 'production', }; + ``` ```typescript displayName="webpack.config.ts" -import path from 'path'; +import path from 'node:path'; import { Configuration } from 'webpack'; -const config: Configuration = { - entry: './src/index.ts', +export default { + entry: './src/index.js', output: { filename: 'bundle.js', - path: path.resolve(__dirname, 'dist'), + path: path.resolve(import.meta.dirname, 'dist'), }, mode: 'production', -}; - -export default config; +} satisfies Configuration; ``` From bd41b4a81dea7f98d92658ab9b8051dc0d0fcc8e Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Thu, 23 Jul 2026 17:00:25 -0700 Subject: [PATCH 2/4] fixup! --- pages/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/index.md b/pages/index.md index 05c174aa..db6bd876 100644 --- a/pages/index.md +++ b/pages/index.md @@ -34,7 +34,7 @@ deno add npm:webpack npm:webpack-cli const path = require('node:path'); module.exports = { - entry: './src/index.js', + entry: './src/index.cjs', output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist'), @@ -48,7 +48,7 @@ module.exports = { import path from 'node:path'; export default { - entry: './src/index.js', + entry: './src/index.mjs', output: { filename: 'bundle.js', path: path.resolve(import.meta.dirname, 'dist'), @@ -63,7 +63,7 @@ import path from 'node:path'; import { Configuration } from 'webpack'; export default { - entry: './src/index.js', + entry: './src/index.ts', output: { filename: 'bundle.js', path: path.resolve(import.meta.dirname, 'dist'), From d38641ee2df613994434e528300c1ec59bca7186 Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Thu, 23 Jul 2026 17:07:55 -0700 Subject: [PATCH 3/4] Update index.md --- pages/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/index.md b/pages/index.md index db6bd876..4f0ee65d 100644 --- a/pages/index.md +++ b/pages/index.md @@ -33,6 +33,7 @@ deno add npm:webpack npm:webpack-cli ```javascript displayName="webpack.config.js" const path = require('node:path'); + module.exports = { entry: './src/index.cjs', output: { @@ -41,12 +42,12 @@ module.exports = { }, mode: 'production', }; - ``` ```javascript displayName="webpack.config.mjs" import path from 'node:path'; + export default { entry: './src/index.mjs', output: { @@ -55,7 +56,6 @@ export default { }, mode: 'production', }; - ``` ```typescript displayName="webpack.config.ts" From fdd1fc914488aac82db7c62c6326146ed70c7db7 Mon Sep 17 00:00:00 2001 From: avivkeller Date: Thu, 23 Jul 2026 22:57:23 -0700 Subject: [PATCH 4/4] fixup! --- pages/index.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/pages/index.md b/pages/index.md index 4f0ee65d..734b673e 100644 --- a/pages/index.md +++ b/pages/index.md @@ -33,7 +33,6 @@ deno add npm:webpack npm:webpack-cli ```javascript displayName="webpack.config.js" const path = require('node:path'); - module.exports = { entry: './src/index.cjs', output: { @@ -47,7 +46,6 @@ module.exports = { ```javascript displayName="webpack.config.mjs" import path from 'node:path'; - export default { entry: './src/index.mjs', output: {