diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-10-22 12:49:11 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-10-28 12:23:02 +0200 |
commit | a8e8a89ade2e5fd1aed16905335fbb765fbdde67 (patch) | |
tree | c07a6170a0d038cc33382d8cefa0a459f6f17636 /webpack.common.js | |
parent | 3323b1ac0d92f8beaf96763fb7ef67d1ed05b6ec (diff) | |
download | nextcloud-server-a8e8a89ade2e5fd1aed16905335fbb765fbdde67.tar.gz nextcloud-server-a8e8a89ade2e5fd1aed16905335fbb765fbdde67.zip |
Only check unsupported browsers on user rendering
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
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: { |