Skip to content

Commit

Permalink
webpack commonsChunkPlugin isframework tester fix for windows dev (#3952
Browse files Browse the repository at this point in the history
)
  • Loading branch information
greglobinski authored and KyleAMathews committed Feb 9, 2018
1 parent e3144e3 commit b499a90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/utils/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ module.exports = async (
]
const isFramework = some(
vendorModuleList.map(vendor => {
const regex = new RegExp(`/node_modules/${vendor}/.*`, `i`)
const regex = new RegExp(`[\\\\/]node_modules[\\\\/]${vendor}[\\\\/].*`, `i`)
return regex.test(module.resource)
})
)
Expand Down

0 comments on commit b499a90

Please sign in to comment.