npm package diff

Package: @forge/bundler

Versions: 4.22.0-next.21 - 4.22.0-next.22

File: package/out/runtime.js

Index: package/out/runtime.js
===================================================================
--- package/out/runtime.js
+++ package/out/runtime.js
@@ -22,8 +22,9 @@
 }
 exports.SandboxBundler = SandboxBundler;
 const NODE_RUNTIME_CODE_FILE = '__forge__.js';
 const NODE_RUNTIME_BACKUP_WRAPPER_FILE = '__forge_wrapper__.cjs';
+const NODE_RUNTIME_USE_LOCAL_WRAPPER_FILE = '__forge_use_local_wrapper.txt';
 const NODE_RUNTIME_VERSION_FILE = 'runtime.json';
 const NODE_WEBPACK_USER_CODE_DIR = 'bundled';
 function userCodePath(entryKey) {
     return path_1.default.join(path_1.default.dirname(entryKey), NODE_WEBPACK_USER_CODE_DIR, path_1.default.basename(entryKey));
@@ -47,8 +48,11 @@
         for (const entrypoint of entrypoints) {
             await emit(`${entrypoint.name}.cjs`, entrypointScript.script);
         }
     }
+    if (process.env.FORGE_RUNTIME_PATH) {
+        await emit(NODE_RUNTIME_USE_LOCAL_WRAPPER_FILE, 'Local wrapper used');
+    }
     await emit(NODE_RUNTIME_VERSION_FILE, JSON.stringify({ version: entrypointScript.version }, null, 2));
 }
 async function emitI18nFiles(i18nResourceBundle, emit) {
     await Promise.all((0, cli_shared_1.listFilesInI18nResourceBundle)(i18nResourceBundle).map(async ([fileName, filePath]) => {