From 12571079fc90d00dcc74b3a0f953b853a854b969 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Thu, 23 Feb 2023 11:56:13 -0800 Subject: 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 --- webpack.common.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'webpack.common.js') 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: { -- cgit v1.2.3