feat(client): add hashes to monaco workers (#42097)

This commit is contained in:
Oliver Eyton-Williams
2021-05-11 18:26:06 +05:30
committed by GitHub
parent a6acbe20cc
commit 7a8d6b2504
+3 -1
View File
@@ -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: {