npm package diff
Package: @forge/bundler
Versions: 4.19.0-next.13 - 4.19.0-next.14
File: package/out/config/nativeui.js
Index: package/out/config/nativeui.js
===================================================================
--- package/out/config/nativeui.js
+++ package/out/config/nativeui.js
@@ -1,17 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNativeUiBuildConfig = void 0;
const tslib_1 = require("tslib");
-const path_1 = require("path");
-const webpack_bundle_analyzer_1 = require("webpack-bundle-analyzer");
+const path_1 = tslib_1.__importDefault(require("path"));
const html_webpack_plugin_1 = tslib_1.__importDefault(require("html-webpack-plugin"));
-const tmp_1 = tslib_1.__importDefault(require("tmp"));
+const webpack_bundle_analyzer_1 = require("webpack-bundle-analyzer");
+const cli_shared_1 = require("@forge/cli-shared");
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);
+ resolvedEntryPoints[entrypoint.name] = path_1.default.resolve(entrypoint.path);
}
return {
entry: {
...resolvedEntryPoints
@@ -20,9 +20,9 @@
mode: 'production',
devtool: 'source-map',
output: {
filename: '[name].js',
- path: tmp_1.default.dirSync().name,
+ path: (0, cli_shared_1.tmpDir)('native-ui'),
publicPath: 'auto'
},
node: {
__dirname: true