chat-with-gpt/app/craco.config.js

43 lines
844 B
JavaScript
Raw Normal View History

2023-03-14 11:00:40 +00:00
const cracoWasm = require("craco-wasm");
const webpack = require("webpack");
2023-04-15 10:33:19 +00:00
const path = require("path");
2023-03-14 11:00:40 +00:00
module.exports = {
plugins: [
cracoWasm(),
],
eslint: {
enable: false
},
babel: {
2023-03-14 11:00:40 +00:00
plugins: [
[
'formatjs',
{
removeDefaultMessage: false,
idInterpolationPattern: '[sha512:contenthash:base64:6]',
ast: true
}
]
]
},
webpack: {
configure: {
resolve: {
fallback: {
buffer: require.resolve("buffer"),
},
2023-04-15 10:33:19 +00:00
alias: {
'@ffmpeg/ffmpeg': path.resolve(__dirname, 'src/stub.js')
},
},
plugins: [
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
}),
],
2023-04-15 10:33:19 +00:00
ignoreWarnings: [/Failed to parse source map/],
cache: false,
2023-03-14 11:00:40 +00:00
},
},
2023-03-14 11:00:40 +00:00
}