Unverified Commit 9aaa75f8 authored by Luke Sandberg's avatar Luke Sandberg Committed by GitHub

[turbopack] Enable inferring module side effects by default (#87216)

This was disabled for the 16.1 release.  so re-enable it just to get rid of the slightly odd `!isStableBuild` pattern and also ensure i don't forget to ship it for 16.2
parent 77c69a71
...@@ -484,7 +484,7 @@ export interface ExperimentalConfig { ...@@ -484,7 +484,7 @@ export interface ExperimentalConfig {
* analyze module code to determine if it has side effects. This can improve tree shaking * analyze module code to determine if it has side effects. This can improve tree shaking
* and bundle size at the cost of some additional analysis. * and bundle size at the cost of some additional analysis.
* *
* Defaults to `true` in canary builds only * Defaults to `true`
*/ */
turbopackInferModuleSideEffects?: boolean turbopackInferModuleSideEffects?: boolean
...@@ -1613,7 +1613,7 @@ export const defaultConfig = Object.freeze({ ...@@ -1613,7 +1613,7 @@ export const defaultConfig = Object.freeze({
mcpServer: true, mcpServer: true,
turbopackFileSystemCacheForDev: true, turbopackFileSystemCacheForDev: true,
turbopackFileSystemCacheForBuild: false, turbopackFileSystemCacheForBuild: false,
turbopackInferModuleSideEffects: !isStableBuild(), turbopackInferModuleSideEffects: true,
devCacheControlNoCache: false, devCacheControlNoCache: false,
}, },
htmlLimitedBots: undefined, htmlLimitedBots: undefined,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment