Unverified Commit ce82c60d authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

Incldue styled-jsx in swc compiling (#40679)

Tree share the `typeof window` conditions in styled-jsx for edge runtime. Let swc loader go through the styled-jsx assets under node_modules, applying the optimization as well

`test-app/server/edge-ssr.js` -155B
parent 44afc376
......@@ -693,6 +693,7 @@ export default async function getBaseWebpackConfig(
/next[\\/]dist[\\/]client/,
/next[\\/]dist[\\/]pages/,
/[\\/](strip-ansi|ansi-regex)[\\/]/,
/styled-jsx[\\/]/,
]
// Support for NODE_PATH
......
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