Skip to content

Commit

Permalink
update rscSharedRegex
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Sep 27, 2022
1 parent f862865 commit 4d87343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/build/webpack-config.ts
Expand Up @@ -87,7 +87,7 @@ const BABEL_CONFIG_FILES = [
]

const rscSharedRegex =
/(node_modules\/react\/|\/shared\/lib\/(head-manager-context|router-context|flush-effects)\.js|node_modules\/styled-jsx\/)/
/(node_modules[\\/]react\/|[\\/]shared[\\/]lib[\\/](head-manager-context|router-context|flush-effects)\.js|node_modules[\\/]styled-jsx[\\/])/

// Support for NODE_PATH
const nodePathList = (process.env.NODE_PATH || '')
Expand Down

0 comments on commit 4d87343

Please sign in to comment.