aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.common.js
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-02-23 14:12:00 +0100
committerskjnldsv <skjnldsv@protonmail.com>2024-02-23 14:12:14 +0100
commiteb672e89cf761ffaddae54a6fccb0349c550aebc (patch)
tree09100d6f53f5db06aa663d9a77403c3b26dc7c41 /webpack.common.js
parent7b9581129014f0c430272b8288ed9e45c0362499 (diff)
downloadnextcloud-server-eb672e89cf761ffaddae54a6fccb0349c550aebc.tar.gz
nextcloud-server-eb672e89cf761ffaddae54a6fccb0349c550aebc.zip
chore(deps): use `@vueuse/core@10.7.2` and fix moment
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'webpack.common.js')
-rw-r--r--webpack.common.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/webpack.common.js b/webpack.common.js
index b1457d76efc..ee6a4953169 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -212,6 +212,15 @@ module.exports = {
// Make appName & appVersion available as a constants for '@nextcloud/vue' components
new webpack.DefinePlugin({ appName: JSON.stringify('Nextcloud') }),
new webpack.DefinePlugin({ appVersion: JSON.stringify(appVersion) }),
+
+ // @nextcloud/moment since v1.3.0 uses `moment/min/moment-with-locales.js`
+ // Which works only in Node.js and is not compatible with Webpack bundling
+ // It has an unused function `localLocale` that requires locales by invalid relative path `./locale`
+ // Though it is not used, Webpack tries to resolve it with `require.context` and fails
+ new webpack.IgnorePlugin({
+ resourceRegExp: /^\.\/locale$/,
+ contextRegExp: /moment\/min$/,
+ }),
],
externals: {
OC: 'OC',