@iblai/web-utils 1.1.4 → 1.1.5

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
@@ -1219,16 +1219,15 @@ const getPlatform = () => {
1219
1219
  }
1220
1220
  return "unknown";
1221
1221
  };
1222
- // Safe access to platform-specific APIs
1223
1222
  const safeRequire = (moduleName) => {
1224
1223
  try {
1224
+ if (typeof __non_webpack_require__ !== "undefined") {
1225
+ return __non_webpack_require__(moduleName);
1226
+ }
1225
1227
  // eslint-disable-next-line no-undef, @typescript-eslint/no-require-imports
1226
1228
  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).
1230
1229
  // eslint-disable-next-line no-undef, @typescript-eslint/no-require-imports
1231
- return require(/* webpackIgnore: true */ moduleName);
1230
+ return require(moduleName);
1232
1231
  }
1233
1232
  }
1234
1233
  catch (error) {