Skip to content

Commit

Permalink
Update packages/babel-preset-gatsby/src/utils/path-serializer.ts
Browse files Browse the repository at this point in the history
Co-Authored-By: Michal Piechowiak <[email protected]>
  • Loading branch information
MichaelDeBoey and pieh authored Mar 9, 2020
1 parent 97070d6 commit 14b9f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-preset-gatsby/src/utils/path-serializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { slash } from "gatsby-core-utils"
const cleanNodeModules = (dir: string): string => {
const x = dir.split(`node_modules/`)

if (x.length === 0) {
if (x.length <= 1) {
return dir
}

Expand Down

0 comments on commit 14b9f2d

Please sign in to comment.