We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a54ef2d commit 02e4076Copy full SHA for 02e4076
1 file changed
src/plugins/withReactStorefront.js
@@ -53,6 +53,15 @@ module.exports = ({
53
}),
54
)
55
56
+ if (config.externals) {
57
+ // Making sure the AMP optimizer is bundled
58
+ config.externals = config.externals.filter(name => name !== '@ampproject/toolbox-optimizer')
59
+ // These are optional dependencies for the optimizer
60
+ // which are not used by default
61
+ config.externals.push('jimp')
62
+ config.externals.push('probe-image-size')
63
+ }
64
+
65
if (process.env.NODE_ENV === 'development') {
66
// This makes it easier to develop apps against a local clone of react-storefront linked with yalc. Here
67
// we ensure that the server build recompiles when any linked dependency changes.
0 commit comments