build fixes

This commit is contained in:
Cogent Apps
2023-04-15 10:33:19 +00:00
parent eb58d900b5
commit 8ec99aba68
4 changed files with 49 additions and 30 deletions

View File

@@ -1,5 +1,6 @@
const cracoWasm = require("craco-wasm");
const webpack = require("webpack");
const path = require("path");
module.exports = {
plugins: [
@@ -26,12 +27,17 @@ module.exports = {
fallback: {
buffer: require.resolve("buffer"),
},
alias: {
'@ffmpeg/ffmpeg': path.resolve(__dirname, 'src/stub.js')
},
},
plugins: [
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
}),
],
ignoreWarnings: [/Failed to parse source map/],
cache: false,
},
},
}