Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 568ff9e1 authored by Richard Steinmetz's avatar Richard Steinmetz Committed by GitHub
Browse files

Merge pull request #3683 from nextcloud/backport/3682/stable2.4

[stable2.4] Shim ICAL to prevent using the global object
parents bfa60fb5 b338f823
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -55,7 +55,14 @@ webpackConfig.plugins.push(
			pattern: './src/assets/iconfont/*.svg'
		}
	}),
	new webpack.IgnorePlugin(/^\.\/locale(s)?$/, /(moment)$/)
	new webpack.IgnorePlugin(/^\.\/locale(s)?$/, /(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
		// break if two separate versions of the library are used (e.g. bundled one
		// and global one).
		ICAL: 'ical.js',
	}),
)

module.exports = webpackConfig