@flatjs/evolve 1.8.1-next.25 → 1.8.1-next.27

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @flatjs/evolve
2
2
 
3
+ ## 1.8.1-next.27
4
+
5
+ ### Patch Changes
6
+
7
+ - 22c4464: Improved performance of `ForkTsCheckerWebpackPlugin`
8
+
9
+ ## 1.8.1-next.26
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [898d48f]
14
+ - @flatjs/common@1.8.1-next.14
15
+ - @flatjs/forge-postcss-plugin-pixel@1.8.1-next.14
16
+ - @flatjs/mock@1.8.1-next.24
17
+ - @flatjs/evolve-preset-babel@1.8.1-next.6
18
+
3
19
  ## 1.8.1-next.25
4
20
 
5
21
  ### Patch Changes
@@ -1 +1 @@
1
- import{logger}from"@flatjs/common";import ReactRefreshWebpackPlugin from"@pmmmwh/react-refresh-webpack-plugin";import CaseSensitivePathsPlugin from"case-sensitive-paths-webpack-plugin";import ForkTsCheckerWebpackPlugin from"fork-ts-checker-webpack-plugin";import MiniCssExtractPlugin from"mini-css-extract-plugin";import{BundleAnalyzerPlugin}from"webpack-bundle-analyzer";import{enableBundleHashNameForModule}from"../helpers/enable-bundle-hashname-for-module.js";import{getBundleFileName}from"../helpers/get-bundle-file-name.js";import{shouldEnableReactFastRefresh}from"../helpers/should-enable-react-fast-refresh.js";import{createCleanWebpackPlugin}from"../plugins/clean-webpack/index.js";import{createModuleFederationPlugin}from"../plugins/module-federation/index.js";import{createHtmlPlugins}from"../plugins/multi-html/index.js";export const createPlugins=(e,n,a)=>{const[r,l]=n,s=enableBundleHashNameForModule(a,l?.options),i=[new CaseSensitivePathsPlugin,new MiniCssExtractPlugin({filename:`[name]/${getBundleFileName("css",e,s)}`,chunkFilename:"[id].[contenthash].css"}),...createCleanWebpackPlugin(e,n,a),...createModuleFederationPlugin(e,n,a),...createHtmlPlugins(e,n,a)],{analyzer:t,loaderOptions:o,webpack:u}=a;o.runTsChecker&&i.push(new ForkTsCheckerWebpackPlugin({async:e})),t&&i.push(new BundleAnalyzerPlugin({analyzerPort:"auto",analyzerMode:"server",...t}));const c=shouldEnableReactFastRefresh(e,n,a);c&&i.push(new ReactRefreshWebpackPlugin({overlay:!1})),!c&&e&&logger.warn(`The HMR has disabled cause of ("${r}":"moduleFederation")`);const m=u?.plugins||[];return i.concat(m)};
1
+ import{logger}from"@flatjs/common";import ReactRefreshWebpackPlugin from"@pmmmwh/react-refresh-webpack-plugin";import CaseSensitivePathsPlugin from"case-sensitive-paths-webpack-plugin";import ForkTsCheckerWebpackPlugin from"fork-ts-checker-webpack-plugin";import MiniCssExtractPlugin from"mini-css-extract-plugin";import{BundleAnalyzerPlugin}from"webpack-bundle-analyzer";import{moduleName}from"../constants.js";import{enableBundleHashNameForModule}from"../helpers/enable-bundle-hashname-for-module.js";import{getBundleFileName}from"../helpers/get-bundle-file-name.js";import{shouldEnableReactFastRefresh}from"../helpers/should-enable-react-fast-refresh.js";import{createCleanWebpackPlugin}from"../plugins/clean-webpack/index.js";import{createModuleFederationPlugin}from"../plugins/module-federation/index.js";import{createHtmlPlugins}from"../plugins/multi-html/index.js";export const createPlugins=(e,n,r)=>{const[a,s]=n,t=enableBundleHashNameForModule(r,s?.options),l=[new CaseSensitivePathsPlugin,new MiniCssExtractPlugin({filename:`[name]/${getBundleFileName("css",e,t)}`,chunkFilename:"[id].[contenthash].css"}),...createCleanWebpackPlugin(e,n,r),...createModuleFederationPlugin(e,n,r),...createHtmlPlugins(e,n,r)],{analyzer:i,loaderOptions:o,webpack:c}=r;if(o.runTsChecker){const r=(n[1].entry||[]).reduce(((e,n)=>{const r=/\.(?:ts|tsx|js|jsx)$/.test(n)?[n]:[n+".ts",n+".tsx"];return e.concat(r)}),[]);logger.debug(`ForkTsCheckerWebpackPlugin: include: ${JSON.stringify(r)}`,moduleName),l.push(new ForkTsCheckerWebpackPlugin({async:e,typescript:{memoryLimit:8192,configOverwrite:{include:r}}}))}i&&l.push(new BundleAnalyzerPlugin({analyzerPort:"auto",analyzerMode:"server",...i}));const u=shouldEnableReactFastRefresh(e,n,r);u&&l.push(new ReactRefreshWebpackPlugin({overlay:!1})),!u&&e&&logger.warn(`The HMR has disabled cause of ("${a}":"moduleFederation")`);const m=c?.plugins||[];return l.concat(m)};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatjs/evolve",
3
- "version": "1.8.1-next.25",
3
+ "version": "1.8.1-next.27",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -40,10 +40,10 @@
40
40
  "@armit/file-utility": "^0.0.19",
41
41
  "@armit/package": "^0.0.29",
42
42
  "@babel/core": "7.21.8",
43
- "@flatjs/common": "1.8.1-next.13",
43
+ "@flatjs/common": "1.8.1-next.14",
44
44
  "@flatjs/evolve-preset-babel": "1.8.1-next.6",
45
- "@flatjs/forge-postcss-plugin-pixel": "1.8.1-next.13",
46
- "@flatjs/mock": "1.8.1-next.23",
45
+ "@flatjs/forge-postcss-plugin-pixel": "1.8.1-next.14",
46
+ "@flatjs/mock": "1.8.1-next.24",
47
47
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
48
48
  "@types/babel__core": "7.20.0",
49
49
  "babel-loader": "9.1.2",
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "devDependencies": {
77
77
  "@armit/eslint-config-bases": "^0.0.16",
78
- "@flatjs/testing": "1.8.1-next.10",
78
+ "@flatjs/testing": "1.8.1-next.11",
79
79
  "@swc/core": "1.3.59",
80
80
  "@types/express": "4.17.17",
81
81
  "@types/node": "20.2.3",