diff options
Diffstat (limited to 'webpack.common.js')
-rw-r--r-- | webpack.common.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webpack.common.js b/webpack.common.js index 28c569ef7ac..a064cd2a2a6 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -144,11 +144,15 @@ module.exports = { // We need to provide the path to node_moduels as otherwise npm link will fail due // to tribute.js checking for jQuery in @nextcloud/vue jQuery: path.resolve(path.join(__dirname, 'node_modules/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', + + // https://github.com/webpack/changelog-v5/issues/10 + Buffer: ['buffer', 'Buffer'], }), ], resolve: { |