summaryrefslogtreecommitdiffstats
path: root/webpack.common.js
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-04-03 10:47:30 +0200
committerskjnldsv <skjnldsv@protonmail.com>2024-04-04 17:04:30 +0200
commitb2737451b107f1cddd97e79ab3f7bd75caf99c0f (patch)
tree26d664f26e9b4893406a4185ad2c99e62fbd52ab /webpack.common.js
parent2a6185e32a12a73cd3b34d989963a6cc6f8617c7 (diff)
downloadnextcloud-server-b2737451b107f1cddd97e79ab3f7bd75caf99c0f.tar.gz
nextcloud-server-b2737451b107f1cddd97e79ab3f7bd75caf99c0f.zip
fix(files): breadcrumbs native drop event
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',