Skip to content

Commit d593986

Browse files
committed
webpack commonsChunkPlugin isframework tester fix for windows dev
1 parent c3199ab commit d593986

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby/src/utils/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ module.exports = async (
290290
]
291291
const isFramework = some(
292292
vendorModuleList.map(vendor => {
293-
const regex = new RegExp(`/node_modules/${vendor}/.*`, `i`)
293+
const regex = new RegExp(`[\\\\/]node_modules[\\\\/]${vendor}[\\\\/].*`, `i`)
294294
return regex.test(module.resource)
295295
})
296296
)

0 commit comments

Comments
 (0)