diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-02-23 11:56:13 -0800 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-02-23 11:56:13 -0800 |
commit | 12571079fc90d00dcc74b3a0f953b853a854b969 (patch) | |
tree | 6200f43aa43ecc3c61ed1cd17d21d83b6133d751 /webpack.common.js | |
parent | 00a7478d8df2007697d5caf2e0cb1c298afbb3fd (diff) | |
download | nextcloud-server-12571079fc90d00dcc74b3a0f953b853a854b969.tar.gz nextcloud-server-12571079fc90d00dcc74b3a0f953b853a854b969.zip |
Bump @nextcloud/vue from 7.5.0 to 7.7.0
- Add node-polyfill-webpack-plugin to polyfill Node.js core modules
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'webpack.common.js')
-rw-r--r-- | webpack.common.js | 5 |
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: { |