@iblai/web-utils 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1224,8 +1224,11 @@ const safeRequire = (moduleName) => {
1224
1224
  try {
1225
1225
  // eslint-disable-next-line no-undef, @typescript-eslint/no-require-imports
1226
1226
  if (typeof require !== "undefined") {
1227
+ // webpackIgnore prevents webpack from creating a context module for this dynamic require,
1228
+ // avoiding "Critical dependency" warnings and RSC bundle corruption.
1229
+ // The module is resolved at runtime by Node.js (server) or webpack's runtime (client).
1227
1230
  // eslint-disable-next-line no-undef, @typescript-eslint/no-require-imports
1228
- return require(moduleName);
1231
+ return require(/* webpackIgnore: true */ moduleName);
1229
1232
  }
1230
1233
  }
1231
1234
  catch (error) {