From 7a8d6b250461649eb26e25398934972bf809a895 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Tue, 11 May 2021 14:56:06 +0200 Subject: [PATCH] feat(client): add hashes to monaco workers (#42097) --- client/gatsby-node.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/gatsby-node.js b/client/gatsby-node.js index 97305f548e..98a832101c 100644 --- a/client/gatsby-node.js +++ b/client/gatsby-node.js @@ -191,7 +191,9 @@ exports.onCreateWebpackConfig = ({ stage, plugins, actions }) => { // involved in SSR. Also, if the plugin is used during the 'build-html' stage // it overwrites the minfied files with ordinary ones. if (stage !== 'build-html') { - newPlugins.push(new MonacoWebpackPlugin()); + newPlugins.push( + new MonacoWebpackPlugin({ filename: '[name].worker-[contenthash].js' }) + ); } actions.setWebpackConfig({ resolve: {