implement mainFields in webpack config

This commit is contained in:
turnoffthiscomputer
2024-09-27 17:46:49 +02:00
parent 3ed0392206
commit 0837d105cc

View File

@@ -18,6 +18,7 @@ module.exports = {
],
},
resolve: {
mainFields: ['browser', 'module', 'main'],
extensions: ['.tsx', '.ts', '.js', '.jsx'],
fallback: {
bufferutil: false,