Skip to content

Commit

Permalink
Merge branch 'stage' into jon/remove-code
Browse files Browse the repository at this point in the history
  • Loading branch information
jonator committed Oct 8, 2024
2 parents 46e4aad + 34399cc commit b955d0d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 3 additions & 2 deletions babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
{
"targets": {
"node": "current"
}
},
"modules": false
}
]
]
}
}
8 changes: 8 additions & 0 deletions packages/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ const config = {
},
};

module.exports = {
...module.exports,
mode: "production", // Ensure the mode is 'production' for tree shaking to work
optimization: {
usedExports: true, // This setting enables tree shaking
},
};

const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
Expand Down
1 change: 1 addition & 0 deletions packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@osmosis-labs/web",
"version": "5.1.0",
"sideEffects": false,
"private": true,
"scripts": {
"knip": "knip",
Expand Down

0 comments on commit b955d0d

Please sign in to comment.