@infomaximum/package-cli 2.28.0 → 2.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [2.29.0](https://github.com/Infomaximum/package-cli/compare/v2.28.0...v2.29.0) (2026-03-03)
6
+
7
+
8
+ ### Features
9
+
10
+ * add new polyfills ([4d9e33b](https://github.com/Infomaximum/package-cli/commit/4d9e33b8530763f4425285577cc270678689f8c6))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * remove test file extensions ([28eb1a7](https://github.com/Infomaximum/package-cli/commit/28eb1a78432e9565d20192bc926c1119c66a83fe))
16
+ * remove unused target ([9fdc634](https://github.com/Infomaximum/package-cli/commit/9fdc6342a924b079c6a3df1bd4f74cca6d188900))
17
+
5
18
  ## [2.28.0](https://github.com/Infomaximum/package-cli/compare/v2.27.2...v2.28.0) (2026-02-18)
6
19
 
7
20
 
@@ -1,17 +1,21 @@
1
+ import webpack from "webpack";
1
2
  import TerserPlugin from "terser-webpack-plugin";
2
3
  import { systemRequire } from "../../../utils.js";
3
4
  import ForkTsCheckerWebpackPlugin from "fork-ts-checker-webpack-plugin";
4
5
  import { TERSER_OPTIONS } from "./utils.js";
5
6
  export const getCommonIntegrationConfig = ({ PATHS, mode, isBeautifyCode, }) => {
7
+ const isDev = mode === "development";
6
8
  return {
7
9
  mode,
8
- target: "es5",
10
+ target: ["es5"],
9
11
  entry: PATHS.moduleIndex,
10
12
  output: {
11
13
  filename: PATHS.outputFile,
12
14
  path: PATHS.appBuildPath,
13
15
  clean: true,
14
- libraryTarget: "module",
16
+ library: {
17
+ type: "module",
18
+ },
15
19
  chunkFormat: false,
16
20
  asyncChunks: false,
17
21
  },
@@ -22,24 +26,34 @@ export const getCommonIntegrationConfig = ({ PATHS, mode, isBeautifyCode, }) =>
22
26
  extensions: [".ts", ".js", ".json"],
23
27
  fallback: {
24
28
  stream: systemRequire.resolve("stream-browserify"),
25
- util: systemRequire.resolve("util"),
29
+ util: systemRequire.resolve("util/"),
26
30
  zlib: systemRequire.resolve("browserify-zlib"),
27
31
  vm: systemRequire.resolve("vm-browserify"),
28
32
  crypto: systemRequire.resolve("crypto-browserify"),
29
33
  buffer: systemRequire.resolve("buffer/"),
34
+ process: systemRequire.resolve("process/browser"),
35
+ assert: systemRequire.resolve("assert/"),
36
+ path: false,
37
+ fs: false,
30
38
  },
31
39
  },
32
40
  module: {
33
41
  rules: [
34
42
  {
35
43
  test: /\.(js|ts|jsx|tsx)$/i,
36
- exclude: ["/node_modules/"],
44
+ exclude: /node_modules/,
37
45
  use: [
38
- { loader: systemRequire.resolve("babel-loader") },
46
+ {
47
+ loader: systemRequire.resolve("babel-loader"),
48
+ options: {
49
+ cacheDirectory: true,
50
+ },
51
+ },
39
52
  {
40
53
  loader: systemRequire.resolve("ts-loader"),
41
54
  options: {
42
55
  transpileOnly: true,
56
+ happyPackMode: true,
43
57
  },
44
58
  },
45
59
  ],
@@ -47,8 +61,15 @@ export const getCommonIntegrationConfig = ({ PATHS, mode, isBeautifyCode, }) =>
47
61
  ],
48
62
  },
49
63
  plugins: [
64
+ new webpack.ProvidePlugin({
65
+ process: systemRequire.resolve("process/browser"),
66
+ Buffer: [systemRequire.resolve("buffer/"), "Buffer"],
67
+ }),
68
+ new webpack.DefinePlugin({
69
+ "process.env.NODE_ENV": JSON.stringify(mode),
70
+ }),
50
71
  new ForkTsCheckerWebpackPlugin({
51
- async: true,
72
+ async: isDev,
52
73
  typescript: {
53
74
  memoryLimit: 2048,
54
75
  diagnosticOptions: {
@@ -59,7 +80,7 @@ export const getCommonIntegrationConfig = ({ PATHS, mode, isBeautifyCode, }) =>
59
80
  }),
60
81
  ],
61
82
  optimization: {
62
- minimize: true,
83
+ minimize: !isDev || !isBeautifyCode,
63
84
  concatenateModules: true,
64
85
  splitChunks: false,
65
86
  runtimeChunk: false,
@@ -71,5 +92,9 @@ export const getCommonIntegrationConfig = ({ PATHS, mode, isBeautifyCode, }) =>
71
92
  }),
72
93
  ],
73
94
  },
95
+ stats: isDev ? "errors-warnings" : "normal",
96
+ performance: {
97
+ hints: isDev ? false : "warning",
98
+ },
74
99
  };
75
100
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infomaximum/package-cli",
3
- "version": "2.28.0",
3
+ "version": "2.29.0",
4
4
  "exports": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",
@@ -30,6 +30,7 @@
30
30
  "@infomaximum/json-modify-webpack-plugin": "^1.1.0",
31
31
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
32
32
  "@svgr/webpack": "^8.1.0",
33
+ "assert": "^2.1.0",
33
34
  "autoprefixer": "^10.4.16",
34
35
  "babel-loader": "^9.1.3",
35
36
  "babel-plugin-inline-json-import": "^0.3.2",
@@ -55,6 +56,7 @@
55
56
  "postcss": "^8.4.32",
56
57
  "postcss-loader": "^7.3.3",
57
58
  "postcss-preset-env": "^9.3.0",
59
+ "process": "^0.11.10",
58
60
  "rc-config-loader": "^4.1.3",
59
61
  "react-refresh": "^0.14.0",
60
62
  "remove-files-webpack-plugin": "^1.5.0",