From 4633ea99f8180bc76b041afe2a72689f17b44784 Mon Sep 17 00:00:00 2001 From: maxkadushkin Date: Sun, 15 Sep 2024 20:02:34 +0300 Subject: [PATCH 1/4] [mobile] revert changes for chunks spliting --- .../framework7-react/build/webpack.config.js | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/vendor/framework7-react/build/webpack.config.js b/vendor/framework7-react/build/webpack.config.js index 0d4766faf7..d7e7d29443 100644 --- a/vendor/framework7-react/build/webpack.config.js +++ b/vendor/framework7-react/build/webpack.config.js @@ -29,8 +29,8 @@ const config = { }, output: { path: resolvePath(`../../apps/${editor}/mobile`), - filename: 'dist/js/[name].[contenthash].js', - chunkFilename: 'dist/js/[name].[contenthash].js', + filename: 'dist/js/[name].js', + chunkFilename: 'dist/js/[name].js', publicPath: '', hotUpdateChunkFilename: 'hot/hot-update.js', hotUpdateMainFilename: 'hot/hot-update.json', @@ -52,26 +52,26 @@ const config = { }, devtool: env === 'production' ? false : 'source-map', optimization: { - splitChunks: { - chunks: 'all', - minSize: 20000, - maxSize: 244000, - cacheGroups: { - vendor: { - test: /[\\/]node_modules[\\/]/, - name: 'vendors', - chunks: 'all', - enforce: true, - }, - common: { - name: 'common', - minChunks: 2, - chunks: 'all', - reuseExistingChunk: true, - enforce: true, - } - } - }, + // splitChunks: { + // chunks: 'all', + // minSize: 20000, + // maxSize: 244000, + // cacheGroups: { + // vendor: { + // test: /[\\/]node_modules[\\/]/, + // name: 'vendors', + // chunks: 'all', + // enforce: true, + // }, + // common: { + // name: 'common', + // minChunks: 2, + // chunks: 'all', + // reuseExistingChunk: true, + // enforce: true, + // } + // } + // }, minimizer: [ new TerserPlugin({ terserOptions: { From 22a11124cef6ead4ff128ef8a2fa56bda2bb07b4 Mon Sep 17 00:00:00 2001 From: maxkadushkin Date: Sun, 15 Sep 2024 20:03:56 +0300 Subject: [PATCH 2/4] [mobile] revert adding BundleAnalyzerPlugin --- vendor/framework7-react/build/webpack.config.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor/framework7-react/build/webpack.config.js b/vendor/framework7-react/build/webpack.config.js index d7e7d29443..e87f7bb9f4 100644 --- a/vendor/framework7-react/build/webpack.config.js +++ b/vendor/framework7-react/build/webpack.config.js @@ -4,7 +4,7 @@ import HtmlWebpackPlugin from 'html-webpack-plugin'; import MiniCssExtractPlugin from "mini-css-extract-plugin"; import CssMinimizerPlugin from "css-minimizer-webpack-plugin"; import TerserPlugin from "terser-webpack-plugin"; -import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'; +// import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'; import fs from 'fs'; import path from 'path'; import { fileURLToPath } from "url"; @@ -281,9 +281,9 @@ const config = { fs.existsSync(`../../../web-apps-mobile/${targetPatch}/patch.jsx`) ? resource.request = `../../../../../../web-apps-mobile/${targetPatch}/patch.jsx` : resource ), - new BundleAnalyzerPlugin({ - analyzerMode: env === 'development' ? 'server' : 'disabled', - }), + // new BundleAnalyzerPlugin({ + // analyzerMode: env === 'development' ? 'server' : 'disabled', + // }), ], }; From be75834310c8d4b45fccc1dd52b496002315c256 Mon Sep 17 00:00:00 2001 From: maxkadushkin Date: Sun, 15 Sep 2024 20:04:48 +0300 Subject: [PATCH 3/4] [mobile] revert locked source map --- vendor/framework7-react/build/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/framework7-react/build/webpack.config.js b/vendor/framework7-react/build/webpack.config.js index e87f7bb9f4..0653e2f901 100644 --- a/vendor/framework7-react/build/webpack.config.js +++ b/vendor/framework7-react/build/webpack.config.js @@ -50,7 +50,7 @@ const config = { externals: { jquery: 'jQuery' }, - devtool: env === 'production' ? false : 'source-map', + devtool: env === 'production' ? 'source-map' : 'source-map', optimization: { // splitChunks: { // chunks: 'all', From 7c511f29a3f44e4ee85dc81b83cf5e3d15141222 Mon Sep 17 00:00:00 2001 From: maxkadushkin Date: Sun, 15 Sep 2024 20:05:54 +0300 Subject: [PATCH 4/4] [mobile] revert added plugins for babel --- vendor/framework7-react/babel.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/framework7-react/babel.config.js b/vendor/framework7-react/babel.config.js index 59384783ed..2a8696428f 100644 --- a/vendor/framework7-react/babel.config.js +++ b/vendor/framework7-react/babel.config.js @@ -14,9 +14,9 @@ const config = { '@babel/plugin-syntax-dynamic-import', ['@babel/plugin-proposal-decorators', {'legacy': true }], ['@babel/plugin-transform-class-properties', { 'loose': false }], - '@babel/plugin-transform-optional-chaining', - '@babel/plugin-transform-nullish-coalescing-operator', - '@babel/plugin-transform-react-constant-elements', + // '@babel/plugin-transform-optional-chaining', + // '@babel/plugin-transform-nullish-coalescing-operator', + // '@babel/plugin-transform-react-constant-elements', ] };