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:
Omar Lópezandkodiakhq[bot] authored and GitHub committed 2022-08-11 10:36:30 -06:00
1 parent 6d79f80928
commit accf845f0e
14 files changed
+22

No files matched your search

+9
View File
@@ -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() {