Skip to content

Commit 1dad832

Browse files
committed
chore: fix npm build warning about moment locales
WARNING in ./node_modules/moment/min/moment-with-locales.js 2159:16-50 Module not found: Error: Can't resolve './locale' in '/home/richard/src/nextcloud/master/dev_apps/calendar/node_modules/moment/min' @ ./node_modules/@nextcloud/moment/dist/index.mjs 1:0-50 2:0-65 6:0-8 9:58-72 9:73-81 15:0-17:2 Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
1 parent 3f2c23c commit 1dad832

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

webpack.config.js

-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ webpackRules.RULE_SCSS.use = [
4545
]
4646

4747
webpackConfig.plugins.push(
48-
new webpack.IgnorePlugin({
49-
resourceRegExp: /^\.\/locale$/,
50-
contextRegExp: /moment$/,
51-
}),
5248
new webpack.ProvidePlugin({
5349
// Shim ICAL to prevent using the global object (window.ICAL).
5450
// The library ical.js heavily depends on instanceof checks which will

0 commit comments

Comments
 (0)