From a8e8a89ade2e5fd1aed16905335fbb765fbdde67 Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Sat, 22 Oct 2022 12:49:11 +0200 Subject: Only check unsupported browsers on user rendering MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- webpack.common.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'webpack.common.js') 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: { -- cgit v1.2.3