@mainset/bundler-webpack 0.3.0-rc.1 → 0.3.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.
@@ -27,7 +27,7 @@ const CSS_LOADER__DEV_RULE_USE_OPTIONS__WEBPACK_CONFIG_CHUNK = {
27
27
  },
28
28
  };
29
29
  // Use options for CSS styles rule in Webpack configuration
30
- const postcssConfigPath = path.join(runtimePathById.root, 'config', 'postcss.config.cjs');
30
+ const postcssConfigPath = path.join(runtimePathById.config, 'postcss.config.cjs');
31
31
  const CSS_STYLES__RULE_USE_OPTIONS__WEBPACK_CONFIG_CHUNK = [
32
32
  // resolveHostPackageNodeModulesPath(
33
33
  // '@mainset/bundler-webpack',
@@ -1,6 +1,12 @@
1
1
  import { runtimePathById } from '@mainset/cli/runtime';
2
2
  import { merge } from '@mainset/toolkit-js';
3
+ import fs from 'fs';
4
+ import path from 'path';
3
5
  import csrWebappEnvBasedConfig from './webapp.csr.config.mjs';
6
+ const proxyConfigPath = path.join(runtimePathById.config, 'proxy.config.mjs');
7
+ const proxyConfigByPath = fs.existsSync(proxyConfigPath)
8
+ ? (await import(proxyConfigPath)).default
9
+ : {};
4
10
  const csrDevServerWebappEnvBasedConfig = merge(csrWebappEnvBasedConfig, {
5
11
  devtool: 'inline-source-map',
6
12
  devServer: {
@@ -10,6 +16,7 @@ const csrDevServerWebappEnvBasedConfig = merge(csrWebappEnvBasedConfig, {
10
16
  },
11
17
  historyApiFallback: true,
12
18
  hot: true,
19
+ proxy: Object.values(proxyConfigByPath),
13
20
  },
14
21
  });
15
22
  export default csrDevServerWebappEnvBasedConfig;
@@ -12,7 +12,7 @@ const ssrServerCommonWebpackConfigFragment = {
12
12
  // SSR server dedicated config
13
13
  target: 'node',
14
14
  entry: {
15
- 'ssr-server.config': path.join(runtimePathById.root, 'config', 'ssr-server.config.mts'),
15
+ 'ssr-server.config': path.join(runtimePathById.config, 'ssr-server.config.mts'),
16
16
  },
17
17
  output: {
18
18
  path: path.join(runtimePathById.dist, 'private'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mainset/bundler-webpack",
3
- "version": "0.3.0-rc.1",
3
+ "version": "0.3.0",
4
4
  "description": "Bundler for web apps",
5
5
  "homepage": "https://github.com/mainset/dev-stack-fe/tree/main/packages/bundler-webpack",
6
6
  "bugs": {
@@ -26,32 +26,32 @@
26
26
  "./global-types": "./src/@types/bundler.d.ts"
27
27
  },
28
28
  "dependencies": {
29
- "@babel/cli": "^7.27.2",
30
- "@babel/core": "^7.27.4",
29
+ "@babel/cli": "^7.28.3",
30
+ "@babel/core": "^7.28.4",
31
31
  "@babel/polyfill": "^7.12.1",
32
- "@babel/preset-env": "^7.27.2",
32
+ "@babel/preset-env": "^7.28.3",
33
33
  "@babel/preset-react": "^7.27.1",
34
34
  "@babel/preset-typescript": "^7.27.1",
35
35
  "babel-loader": "^10.0.0",
36
- "copy-webpack-plugin": "^13.0.0",
36
+ "copy-webpack-plugin": "^13.0.1",
37
37
  "css-loader": "^7.1.2",
38
- "html-webpack-plugin": "^5.6.3",
39
- "mini-css-extract-plugin": "^2.9.2",
38
+ "html-webpack-plugin": "^5.6.4",
39
+ "mini-css-extract-plugin": "^2.9.4",
40
40
  "null-loader": "^4.0.1",
41
41
  "postcss": "^8.5.6",
42
- "postcss-loader": "^8.1.1",
43
- "sass": "^1.89.2",
42
+ "postcss-loader": "^8.2.0",
43
+ "sass": "^1.93.2",
44
44
  "sass-loader": "^16.0.5",
45
45
  "style-loader": "^4.0.0",
46
46
  "terser-webpack-plugin": "^5.3.14",
47
- "webpack": "^5.99.9",
47
+ "webpack": "^5.102.1",
48
48
  "webpack-cli": "^6.0.1",
49
49
  "webpack-dev-server": "^5.2.2"
50
50
  },
51
51
  "devDependencies": {
52
- "@mainset/cli": "^0.3.0-rc.1",
53
- "@mainset/toolkit-js": "^0.1.1-rc.1",
54
- "@mainset/dev-stack-fe": "^0.2.0-rc.1"
52
+ "@mainset/cli": "^0.3.0",
53
+ "@mainset/dev-stack-fe": "^0.2.0",
54
+ "@mainset/toolkit-js": "^0.1.1"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@mainset/cli": "^0.3.0",