Skip to content

🎥 Make videos programmatically with React

Update webpack-config.ts

Jonny Burgerdc212d0c53e5
diff --git a/packages/bundler/src/webpack-config.ts b/packages/bundler/src/webpack-config.ts
index 4f927d5fea..c06f911617 100644
--- a/packages/bundler/src/webpack-config.ts
+++ b/packages/bundler/src/webpack-config.ts
@@ -119,6 +119,8 @@ export const webpackConfig = ({
{
loader: require.resolve('file-loader'),
options: {
+ // default md4 not available in node17
+ hash: 'md5',
// So you can do require('hi.png')
// instead of require('hi.png').default
esModule: false,
@@ -160,6 +162,8 @@ export const webpackConfig = ({
{
loader: require.resolve('file-loader'),
options: {
+ // default md4 not available in node17
+ hash: 'md5',
name: '[name].[ext]',
outputPath: 'fonts/',
},