Skip to content

Commit

Permalink
fix(bb.js): don't minify bb.js - webpack config (#10170)
Browse files Browse the repository at this point in the history
Libraries should not be minified. Minification and bundling is usually
done on app end. Unminifying bb.js will allow patching top-level await
as a temporary workaround to fix Safari.
  • Loading branch information
olehmisar authored Nov 25, 2024
1 parent 03b7e0e commit 6e7fae7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions barretenberg/ts/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import { fileURLToPath } from 'url';
import ResolveTypeScriptPlugin from 'resolve-typescript-plugin';
import webpack from 'webpack';

/**
* @type {import('webpack').Configuration}
*/
export default {
target: 'web',
mode: 'production',
Expand Down Expand Up @@ -40,6 +43,9 @@ export default {
type: 'module',
},
},
optimization: {
minimize: false,
},
experiments: {
outputModule: true,
},
Expand Down

0 comments on commit 6e7fae7

Please sign in to comment.