@forge/bundler
7.1.07.1.1-next.0
out/nativeui.js~
out/nativeui.jsModified+6−5
Index: package/out/nativeui.js
===================================================================
--- package/out/nativeui.js
+++ package/out/nativeui.js
@@ -5,16 +5,16 @@
const nativeui_1 = require("./config/nativeui");
const types_1 = require("./types");
const webpack_1 = require("./webpack");
class NativeUIBundler extends webpack_1.WebpackBundler {
- async getConfigs({ entryPoints, i18nConfig }) {
- const iframeConfig = (0, nativeui_1.getNativeUiBuildConfig)(entryPoints, i18nConfig);
+ async getConfigs({ entryPoints, i18nConfig, inspect }) {
+ const iframeConfig = (0, nativeui_1.getNativeUiBuildConfig)(entryPoints, i18nConfig, inspect);
if (process.env.EXP_FORGE_UI_WORKER_RUNTIME === 'true') {
- return [iframeConfig, (0, nativeui_1.getNativeUiWorkerBuildConfig)(entryPoints, i18nConfig, iframeConfig.output.path)];
+ return [iframeConfig, (0, nativeui_1.getNativeUiWorkerBuildConfig)(entryPoints, i18nConfig, iframeConfig.output.path, inspect)];
}
return [iframeConfig];
}
- async bundleResources(resources, i18nConfig) {
+ async bundleResources(resources, i18nConfig, inspect) {
const nativeUiBundlesDetails = [];
let combinedMetadata = (0, types_1.emptyMetadata)();
await Promise.all(resources.map(async (resource) => {
const entryPoints = (0, common_1.createEntryPointsForResource)(resource.key, resource.path, resource.entry);
@@ -22,9 +22,10 @@
try {
bundlerOutput = await this.bundle({
appDirectory: '',
entryPoints,
- i18nConfig
+ i18nConfig,
+ inspect
});
}
catch (e) {
throw new types_1.BundlerError(e.message);