npm package diff

Package: @forge/bundler

Versions: 4.17.6-next.3 - 4.17.6-next.1-experimental-264fa0f

File: package/out/config/node.js

Index: package/out/config/node.js
===================================================================
--- package/out/config/node.js
+++ package/out/config/node.js
@@ -2,9 +2,9 @@
 Object.defineProperty(exports, "__esModule", { value: true });
 exports.getNodeRuntimeBuildConfig = exports.getWrapperProvider = exports.NetworkWrapperProvider = exports.LocalWrapperProvider = exports.ParseWrapperCDNIndexError = exports.WrapperNetworkError = exports.LocalWrapperNotFoundError = exports.LOCAL_WRAPPER_PATH = exports.NODE_RUNTIME_VERSION_FILE = exports.NODE_WEBPACK_USER_CODE_DIR = exports.NODE_WEBPACK_CONFIG_NAME = void 0;
 const tslib_1 = require("tslib");
 const path_1 = tslib_1.__importDefault(require("path"));
-const cheerio_1 = tslib_1.__importDefault(require("cheerio"));
+const cheerio_1 = require("cheerio");
 const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
 const cli_shared_1 = require("@forge/cli-shared");
 const common_1 = require("./common");
 exports.NODE_WEBPACK_CONFIG_NAME = 'node-runtime';
@@ -62,9 +62,9 @@
     constructor() {
         this.cdnUrl = (0, cli_shared_1.getEnvironmentConfig)(RuntimeCDN);
     }
     async getWrapperPathFromIndex(htmlContent, requestId) {
-        const html = cheerio_1.default.load(htmlContent);
+        const html = (0, cheerio_1.load)(htmlContent, { xml: { xmlMode: false } });
         const wrapperPath = html('script')?.get()?.[0]?.attribs['src'];
         if (typeof wrapperPath !== 'string') {
             throw new ParseWrapperCDNIndexError('Unable to parse source of runtime component.', requestId);
         }