diff --git a/packages/gatsby-parcel-config/lib/index.json b/packages/gatsby-parcel-config/lib/index.json index 37becb03806f9..2b1adb9f7d5a6 100644 --- a/packages/gatsby-parcel-config/lib/index.json +++ b/packages/gatsby-parcel-config/lib/index.json @@ -3,7 +3,8 @@ "transformers": { "*.{js,mjs,jsm,jsx,es6,cjs,ts,tsx}": [ "@parcel/transformer-js" - ] + ], + "*.{json,json5}": ["@parcel/transformer-json"] }, "namers": ["@gatsbyjs/parcel-namer-relative-to-cwd", "@parcel/namer-default"], "runtimes": ["@parcel/runtime-js"], diff --git a/packages/gatsby-parcel-config/package.json b/packages/gatsby-parcel-config/package.json index 98237c7e97cf0..42a39b9ad907c 100644 --- a/packages/gatsby-parcel-config/package.json +++ b/packages/gatsby-parcel-config/package.json @@ -24,7 +24,8 @@ "@parcel/reporter-dev-server": "2.6.2", "@parcel/resolver-default": "2.6.2", "@parcel/runtime-js": "2.6.2", - "@parcel/transformer-js": "2.6.2" + "@parcel/transformer-js": "2.6.2", + "@parcel/transformer-json": "2.6.2" }, "peerDependencies": { "@parcel/core": "^2.0.0" diff --git a/yarn.lock b/yarn.lock index 87d8fe5d2646f..58b6d940dd1a0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3499,6 +3499,14 @@ regenerator-runtime "^0.13.7" semver "^5.7.1" +"@parcel/transformer-json@2.6.2": + version "2.6.2" + resolved "https://registry.yarnpkg.com/@parcel/transformer-json/-/transformer-json-2.6.2.tgz#37a5c3f4571c81e1a5f2d0c77f266b56e3866ad5" + integrity sha512-QGcIIvbPF/u10ihYvQhxXqb2QMXWSzcBxJrOSIXIl74TUGrWX05D5LmjDA/rzm/n/kvRnBkFNP60R/smYb8x+Q== + dependencies: + "@parcel/plugin" "2.6.2" + json5 "^2.2.0" + "@parcel/types@2.6.2": version "2.6.2" resolved "https://registry.yarnpkg.com/@parcel/types/-/types-2.6.2.tgz#216313bcaf625e59a2bd525a00c3b1f6701b0d92"