Skip to content

Commit

Permalink
chore: fix npm build warning about moment locales
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
st3iny committed Jan 29, 2024
1 parent 3f2c23c commit 1dad832
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ webpackRules.RULE_SCSS.use = [
]

webpackConfig.plugins.push(
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/locale$/,
contextRegExp: /moment$/,
}),
new webpack.ProvidePlugin({
// Shim ICAL to prevent using the global object (window.ICAL).
// The library ical.js heavily depends on instanceof checks which will
Expand Down

0 comments on commit 1dad832

Please sign in to comment.