@iblai/web-utils 1.1.4 → 1.1.6
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.d.ts +4 -4
- package/dist/index.esm.js +2 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -8
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1219,16 +1219,10 @@ 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 {
|
|
1225
|
-
|
|
1226
|
-
|
|
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
|
-
// eslint-disable-next-line no-undef, @typescript-eslint/no-require-imports
|
|
1231
|
-
return require(/* webpackIgnore: true */ moduleName);
|
|
1224
|
+
if (typeof __non_webpack_require__ !== "undefined") {
|
|
1225
|
+
return __non_webpack_require__(moduleName);
|
|
1232
1226
|
}
|
|
1233
1227
|
}
|
|
1234
1228
|
catch (error) {
|