npm package diff
Package: @forge/bundler
Versions: 4.18.1-next.8-experimental-c7a7d36 - 4.19.0-next.11
File: package/out/config/nativeui.js
Index: package/out/config/nativeui.js
===================================================================
--- package/out/config/nativeui.js
+++ package/out/config/nativeui.js
@@ -5,9 +5,10 @@
const path_1 = require("path");
const webpack_bundle_analyzer_1 = require("webpack-bundle-analyzer");
const html_webpack_plugin_1 = tslib_1.__importDefault(require("html-webpack-plugin"));
const tmp_1 = tslib_1.__importDefault(require("tmp"));
-const getNativeUiBuildConfig = (entrypoints) => {
+const common_1 = require("./common");
+const getNativeUiBuildConfig = (entrypoints, i18nConfig) => {
const resolvedEntryPoints = {};
for (const entrypoint of entrypoints) {
resolvedEntryPoints[entrypoint.name] = (0, path_1.resolve)(entrypoint.path);
}
@@ -43,8 +44,9 @@
},
target: 'web',
module: {
rules: [
+ ...(i18nConfig ? [(0, common_1.geti18nRule)(i18nConfig)] : []),
{
test: /\.(jpe?g|png|gif|svg)$/i,
type: 'asset/resource'
},