Skip to content

Commit

Permalink
feat(gatsby-parcel-config): Re-Add JSON transformer (#36748) (#36752)
Browse files Browse the repository at this point in the history
Co-authored-by: Lennart <lekoarts@gmail.com>
  • Loading branch information
ViCo0TeCH and LekoArts committed Oct 6, 2022
1 parent 8a44d0f commit 7f5aec0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/gatsby-parcel-config/lib/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
3 changes: 2 additions & 1 deletion packages/gatsby-parcel-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7f5aec0

Please sign in to comment.