@parcel/transformer-babel 2.4.1 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/config.js CHANGED
@@ -354,11 +354,7 @@ async function getCodeHighlights(fs, filePath, redundantPresets) {
354
354
  }
355
355
 
356
356
  if (pointers.length > 0) {
357
- try {
358
- return (0, _diagnostic().generateJSONCodeHighlights)(contents, pointers);
359
- } catch {// TODO: support code highlights for json5 sources.
360
- // Babel supports json5 syntax, but json-source-map does not.
361
- }
357
+ return (0, _diagnostic().generateJSONCodeHighlights)(contents, pointers);
362
358
  }
363
359
  }
364
360
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/transformer-babel",
3
- "version": "2.4.1",
3
+ "version": "2.6.1",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -17,13 +17,13 @@
17
17
  "source": "src/BabelTransformer.js",
18
18
  "engines": {
19
19
  "node": ">= 12.0.0",
20
- "parcel": "^2.4.1"
20
+ "parcel": "^2.6.1"
21
21
  },
22
22
  "dependencies": {
23
- "@parcel/diagnostic": "2.4.1",
24
- "@parcel/plugin": "2.4.1",
23
+ "@parcel/diagnostic": "2.6.1",
24
+ "@parcel/plugin": "2.6.1",
25
25
  "@parcel/source-map": "^2.0.0",
26
- "@parcel/utils": "2.4.1",
26
+ "@parcel/utils": "2.6.1",
27
27
  "browserslist": "^4.6.6",
28
28
  "json5": "^2.2.0",
29
29
  "nullthrows": "^1.1.1",
@@ -33,7 +33,7 @@
33
33
  "@babel/core": "^7.12.0",
34
34
  "@babel/preset-env": "^7.0.0",
35
35
  "@babel/types": "^7.12.0",
36
- "@parcel/types": "2.4.1"
36
+ "@parcel/types": "2.6.1"
37
37
  },
38
- "gitHead": "80c728ceffdc0829eca568a6ec66c07e07a0b87b"
38
+ "gitHead": "b8b203da8302dfde6d875422c8c557a00b7d3c02"
39
39
  }
package/src/config.js CHANGED
@@ -394,12 +394,7 @@ async function getCodeHighlights(fs, filePath, redundantPresets) {
394
394
  }
395
395
 
396
396
  if (pointers.length > 0) {
397
- try {
398
- return generateJSONCodeHighlights(contents, pointers);
399
- } catch {
400
- // TODO: support code highlights for json5 sources.
401
- // Babel supports json5 syntax, but json-source-map does not.
402
- }
397
+ return generateJSONCodeHighlights(contents, pointers);
403
398
  }
404
399
  }
405
400