From 0d0cb6e8f2c39992005e64c625788743d29473c1 Mon Sep 17 00:00:00 2001 From: Daniel Cassidy Date: Thu, 24 Nov 2022 19:41:22 +0000 Subject: [PATCH 1/2] fix(file-loader): use base62 digest type for file names --- index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index 00da6a3e..277a9dd0 100644 --- a/index.ts +++ b/index.ts @@ -323,8 +323,8 @@ function WebpackConfig( esModule: false, name: mode === "development" - ? "[path][name]-[sha256:contenthash:base64:8].[ext]" - : "[sha256:contenthash:base64:8].[ext]" + ? "[path][name]-[sha256:contenthash:base62:8].[ext]" + : "[sha256:contenthash:base62:8].[ext]" } }; From e98a08f6acb6a03dfa48386035293d0048bb67fb Mon Sep 17 00:00:00 2001 From: Daniel Cassidy Date: Fri, 23 Aug 2024 08:59:32 +0100 Subject: [PATCH 2/2] docs(Upgrade-Guide): correct misleading advice --- docs/Upgrade-Guide.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Upgrade-Guide.md b/docs/Upgrade-Guide.md index 1887f978..8e4e4734 100644 --- a/docs/Upgrade-Guide.md +++ b/docs/Upgrade-Guide.md @@ -13,7 +13,8 @@ - Rename `webpack.config.js` to `webpack.config.cjs` - Change all `import ... from "foo"` to `foo.js` (even if the source file is `.ts` or `.tsx`). -- Change all `import foo = require("foo")` to `import foo from "foo"`. +- Change all `import foo = require("foo")` to `import foo from "foo.js"` + (even if the source file is `.ts` or `.tsx`). - Migrate AVA to ESM if required (see https://github.com/avajs/ava/blob/main/docs/recipes/typescript.md#for-packages-with-type-module) - See https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c