build fixes
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user