From c116e9cf3809b13670b844507c1faf36a08fd021 Mon Sep 17 00:00:00 2001 From: Evan Sutherland Date: Wed, 3 Nov 2021 14:55:05 -0500 Subject: [PATCH 1/3] removed most of the dependency files in moment locale --- vue.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index c44781962..f51eb3e54 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,4 +1,5 @@ const WorkerPlugin = require('worker-plugin') +const webpack = require('webpack') module.exports = { chainWebpack: config => { @@ -82,7 +83,13 @@ module.exports = { } } }, - plugins: [new WorkerPlugin({ sharedWorker: true })] + plugins: [ + new WorkerPlugin({ sharedWorker: true }), + new webpack.ContextReplacementPlugin( + /moment[/\\]locale$/, + /en-au|en-ca|en-us|en-mx/ + ) + ] }, pluginOptions: { @@ -93,6 +100,7 @@ module.exports = { }, webpackBundleAnalyzer: { analyzerMode: 'disabled' + //generateStatsFile: true } }, From ce808dd041a304ca616de11f5f70b1f75d002892 Mon Sep 17 00:00:00 2001 From: Evan Sutherland Date: Wed, 3 Nov 2021 15:35:58 -0500 Subject: [PATCH 2/3] changelog --- Changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Changelog.md b/Changelog.md index a47a6426f..c3468dc2f 100644 --- a/Changelog.md +++ b/Changelog.md @@ -9,6 +9,7 @@ ### Bugfixes +- Removed unused locale files from moment dependency - [#1109](https://github.com/PrefectHQ/ui/pull/1109) - Adds a try/catch block when deleting a membership in the removeUser method - [#1094](https://github.com/PrefectHQ/ui/pull/1094) - Internal: update CircleCI config slack orb (add `@` to mentions) - [#1053](https://github.com/PrefectHQ/ui/pull/1053) From 1512bbb8eac7430417f81a253c22106e9ac27ed4 Mon Sep 17 00:00:00 2001 From: Evan Sutherland Date: Thu, 4 Nov 2021 09:02:18 -0500 Subject: [PATCH 3/3] added comment to explain vue.config change --- vue.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vue.config.js b/vue.config.js index f51eb3e54..58a7a84ca 100644 --- a/vue.config.js +++ b/vue.config.js @@ -100,6 +100,8 @@ module.exports = { }, webpackBundleAnalyzer: { analyzerMode: 'disabled' + // you can uncomment this line, run npm build, this will generate dist/stats.json which can be viewed here + // https://chrisbateman.github.io/webpack-visualizer/ //generateStatsFile: true } },