@neon-rs/cli 0.0.197 → 0.0.200
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/index.js +6 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -47676,7 +47676,12 @@ __nccwpck_require__.a(module, async (__webpack_handle_async_dependencies__, __we
|
|
|
47676
47676
|
|
|
47677
47677
|
|
|
47678
47678
|
const absoluteRequire = (0,node_module__WEBPACK_IMPORTED_MODULE_3__.createRequire)(import.meta.url);
|
|
47679
|
-
//
|
|
47679
|
+
// When compiling with ncc, the default global `require` function does
|
|
47680
|
+
// not know how to find the binary `@cargo-messages/*` modules, but the
|
|
47681
|
+
// compiled result of `createRequire` does. So this replaces the global
|
|
47682
|
+
// `require` with that one. This way when the `cargo-messages` loader
|
|
47683
|
+
// module attempts to load the right binary module for the device, the
|
|
47684
|
+
// call to `require` succeeds.
|
|
47680
47685
|
global['require'] = function (spec) {
|
|
47681
47686
|
return absoluteRequire(spec);
|
|
47682
47687
|
};
|