aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.common.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.common.js')
-rw-r--r--webpack.common.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/webpack.common.js b/webpack.common.js
index 3cae88369f7..c8bcb740236 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -142,6 +142,11 @@ module.exports = {
new webpack.ProvidePlugin({
// Provide jQuery to jquery plugins as some are loaded before $ is exposed globally.
jQuery: 'jquery',
+ // 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',
}),
],
resolve: {