From abb1cfa80abc7d2359791e3ca25ccf2055a45728 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Thu, 4 Jun 2026 17:58:26 -0400 Subject: [PATCH 1/2] Fix missing `crypto` polyfill warning. --- CHANGELOG.md | 5 +++++ lib/index.js | 3 +++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index af6376e..037ae80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # bedrock-webpack ChangeLog +## 11.6.1 - 2026-06-dd + +### Fixed +- Ensure default base config disables unavailable `crypto` frontend polyfill. + ## 11.6.0 - 2026-06-04 ### Changed diff --git a/lib/index.js b/lib/index.js index 04e23cd..559431d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -305,6 +305,9 @@ export async function bundle(options = {}) { // 'my-project': path.resolve(__dirname, '../components') //vue: require.resolve('@vue/compat') vue: require.resolve('vue') + }, + fallback: { + crypto: false } }, module: { From 60a5e9bdcce1515872fda07b0f8e259391197edc Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Thu, 4 Jun 2026 17:59:36 -0400 Subject: [PATCH 2/2] Add comment on `crypto` polyfill fallback config. --- lib/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/index.js b/lib/index.js index 559431d..fd39429 100644 --- a/lib/index.js +++ b/lib/index.js @@ -307,6 +307,8 @@ export async function bundle(options = {}) { vue: require.resolve('vue') }, fallback: { + // fixes missing crypto polyfill warning; apps that install this + // polyfill can configure it to load what they install instead crypto: false } },