From b2737451b107f1cddd97e79ab3f7bd75caf99c0f Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Wed, 3 Apr 2024 10:47:30 +0200 Subject: fix(files): breadcrumbs native drop event Signed-off-by: skjnldsv --- webpack.common.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'webpack.common.js') 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', -- cgit v1.2.3