Skip to content

Commit b27a03a

Browse files
authored
Disable build variant (#14453)
1 parent 9ba0632 commit b27a03a

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

dotcom-rendering/webpack/bundles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @type {boolean} prevent TS from narrowing this to its current value
1111
*/
12-
const BUILD_VARIANT = true;
12+
const BUILD_VARIANT = false;
1313

1414
/**
1515
* Server-side test names for running variant test.

dotcom-rendering/webpack/webpack.config.client.js

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -139,20 +139,13 @@ module.exports = ({ build }) => ({
139139
svgr,
140140
],
141141
},
142-
/**
143-
* Do not alias React modules in the web build variant so React is bundled
144-
* instead of Preact
145-
*/
146-
resolve:
147-
build === 'client.web.variant'
148-
? undefined
149-
: {
150-
alias: {
151-
react: 'preact/compat',
152-
'react-dom/test-utils': 'preact/test-utils',
153-
'react-dom': 'preact/compat',
154-
},
155-
},
142+
resolve: {
143+
alias: {
144+
react: 'preact/compat',
145+
'react-dom/test-utils': 'preact/test-utils',
146+
'react-dom': 'preact/compat',
147+
},
148+
},
156149
});
157150

158151
module.exports.transpileExclude = {

0 commit comments

Comments
 (0)