Allows tree shaking unused modules (#3752)
* Allows tree shaking unused modules * don't tree shake embed-core side effects Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
6d79f80928
commit
accf845f0e
14 files changed
+22
No files matched your search
@@ -84,6 +84,15 @@ const nextConfig = {
|
||||
fs: false,
|
||||
};
|
||||
|
||||
/**
|
||||
* TODO: Find more possible barrels for this project.
|
||||
* @see https://github.com/vercel/next.js/issues/12557#issuecomment-1196931845
|
||||
**/
|
||||
config.module.rules.push({
|
||||
test: [/lib\/.*.tsx?/i],
|
||||
sideEffects: false,
|
||||
});
|
||||
|
||||
return config;
|
||||
},
|
||||
async rewrites() {
|
||||
|
||||
Reference in new issue
Block a user