aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.common.js
diff options
context:
space:
mode:
authorPytal <24800714+Pytal@users.noreply.github.com>2023-02-23 12:56:23 -0800
committerGitHub <noreply@github.com>2023-02-23 12:56:23 -0800
commitabaf6cd3a4f706a76775dee43210b4a8b91316b5 (patch)
tree6200f43aa43ecc3c61ed1cd17d21d83b6133d751 /webpack.common.js
parent00a7478d8df2007697d5caf2e0cb1c298afbb3fd (diff)
parent12571079fc90d00dcc74b3a0f953b853a854b969 (diff)
downloadnextcloud-server-abaf6cd3a4f706a76775dee43210b4a8b91316b5.tar.gz
nextcloud-server-abaf6cd3a4f706a76775dee43210b4a8b91316b5.zip
Merge pull request #36813 from nextcloud/deps/nextcloud/vue-7.7.0
Diffstat (limited to 'webpack.common.js')
-rw-r--r--webpack.common.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/webpack.common.js b/webpack.common.js
index 002ffd06e61..201f3f9ed7d 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -3,6 +3,7 @@ const { VueLoaderPlugin } = require('vue-loader')
const path = require('path')
const BabelLoaderExcludeNodeModulesExcept = require('babel-loader-exclude-node-modules-except')
const webpack = require('webpack')
+const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
const modules = require('./webpack.modules.js')
const formatOutputFromModules = (modules) => {
@@ -147,6 +148,7 @@ module.exports = {
plugins: [
new VueLoaderPlugin(),
+ new NodePolyfillPlugin(),
new webpack.ProvidePlugin({
// Provide jQuery to jquery plugins as some are loaded before $ is exposed globally.
// We need to provide the path to node_moduels as otherwise npm link will fail due
@@ -158,9 +160,6 @@ module.exports = {
// 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'],
}),
],
externals: {