Skip to content

Commit 76ebba0

Browse files
authored
Merge pull request Expensify#71360 from Expensify/revert-71047-perf/production-bundle-cleanup
Revert "[No QA] perf: production bundle cleanup"
2 parents e9f52c7 + a31716b commit 76ebba0

4 files changed

Lines changed: 4 additions & 52 deletions

File tree

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ require('dotenv').config();
33
const IS_E2E_TESTING = process.env.E2E_TESTING === 'true';
44

55
const ReactCompilerConfig = {
6-
target: '19',
6+
target: '18',
77
environment: {
88
enableTreatRefLikeIdentifiersAsRefs: true,
99
},

config/webpack/webpack.common.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import CopyPlugin from 'copy-webpack-plugin';
33
import dotenv from 'dotenv';
44
import fs from 'fs';
55
import HtmlWebpackPlugin from 'html-webpack-plugin';
6-
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
76
import path from 'path';
87
import TerserPlugin from 'terser-webpack-plugin';
98
import type {Class} from 'type-fest';
@@ -150,9 +149,6 @@ const getCommonConfiguration = ({file = '.env', platform = 'web'}: Environment):
150149
new IgnorePlugin({
151150
resourceRegExp: /@welldone-software\/why-did-you-render/,
152151
}),
153-
new IgnorePlugin({
154-
resourceRegExp: /react-is/,
155-
}),
156152
]
157153
: []),
158154
...(platform === 'web' ? [new CustomVersionFilePlugin()] : []),
@@ -170,7 +166,6 @@ const getCommonConfiguration = ({file = '.env', platform = 'web'}: Environment):
170166
// eslint-disable-next-line @typescript-eslint/naming-convention
171167
__DEV__: /staging|prod|adhoc/.test(file) === false,
172168
}),
173-
...(isDevelopment ? [] : [new MiniCssExtractPlugin()]),
174169

175170
// This allows us to interactively inspect JS bundle contents
176171
...(process.env.ANALYZE_BUNDLE === 'true' ? [new BundleAnalyzerPlugin()] : []),
@@ -237,7 +232,7 @@ const getCommonConfiguration = ({file = '.env', platform = 'web'}: Environment):
237232
},
238233
{
239234
test: /\.css$/i,
240-
use: isDevelopment ? ['style-loader', 'css-loader'] : [MiniCssExtractPlugin.loader, 'css-loader'],
235+
use: ['style-loader', 'css-loader'],
241236
},
242237
{
243238
test: /\.(woff|woff2)$/i,

package-lock.json

Lines changed: 1 addition & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
"octokit": "cd scripts && npx ts-node -i -e \"$(cat ./octokit.ts)\""
8181
},
8282
"dependencies": {
83-
"@babel/runtime": "^7.25.0",
8483
"@dnd-kit/core": "^6.3.1",
8584
"@dnd-kit/modifiers": "^9.0.0",
8685
"@dnd-kit/sortable": "^10.0.0",
@@ -226,6 +225,7 @@
226225
"@babel/preset-flow": "^7.12.13",
227226
"@babel/preset-react": "^7.10.4",
228227
"@babel/preset-typescript": "^7.21.5",
228+
"@babel/runtime": "^7.25.0",
229229
"@babel/traverse": "^7.22.20",
230230
"@babel/types": "^7.22.19",
231231
"@callstack/reassure-compare": "^1.0.0-rc.4",
@@ -336,7 +336,6 @@
336336
"jest-when": "^3.5.2",
337337
"link": "^2.1.1",
338338
"memfs": "^4.6.0",
339-
"mini-css-extract-plugin": "^2.9.4",
340339
"nitrogen": "0.29.4",
341340
"onchange": "^7.1.0",
342341
"openai": "5.5.1",

0 commit comments

Comments
 (0)