Expose Buffer to Webpack configuration

This commit is contained in:
D. Berge
2023-11-15 20:18:19 +01:00
parent a9f93cfd17
commit 6fa0f8e659

View File

@@ -1,3 +1,5 @@
const webpack = require('webpack');
module.exports = { module.exports = {
"transpileDependencies": [ "transpileDependencies": [
"vuetify", "vuetify",
@@ -41,6 +43,13 @@ module.exports = {
path: require.resolve("path-browserify") path: require.resolve("path-browserify")
} }
}, },
plugins: [
// Work around for Buffer is undefined:
// https://github.com/webpack/changelog-v5/issues/10
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
})
],
module: { module: {
rules: [ rules: [
{ {