build-ts 8.4.0 → 8.4.2

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.
Files changed (2) hide show
  1. package/babel.config.mjs +5 -3
  2. package/package.json +2 -2
package/babel.config.mjs CHANGED
@@ -13,7 +13,6 @@ const config = {
13
13
  noDocumentAll: true,
14
14
  noIncompleteNsImportDetection: true,
15
15
  noNewArrows: true,
16
- privateFieldsAsProperties: true,
17
16
  privateFieldsAsSymbols: true,
18
17
  setClassMethods: true,
19
18
  setComputedProperties: true,
@@ -30,10 +29,13 @@ const config = {
30
29
  '@babel/typescript',
31
30
  ],
32
31
  plugins: [
32
+ // We should use import assertions until TypeScript supports import attributes.
33
+ // cf. https://github.com/microsoft/TypeScript/issues/53656
34
+ '@babel/plugin-syntax-import-assertions',
35
+ // cf. https://babeljs.io/blog/2023/05/26/7.22.0#import-attributes-15536-15620
36
+ // '@babel/plugin-syntax-import-attributes',
33
37
  // cf. https://babeljs.io/blog/2023/05/26/7.22.0#explicit-resource-management-15633-15520
34
38
  '@babel/plugin-proposal-explicit-resource-management',
35
- // cf. https://babeljs.io/blog/2023/05/26/7.22.0#import-attributes-15536-15620
36
- '@babel/plugin-syntax-import-attributes',
37
39
  // cf. https://babeljs.io/blog/2023/05/26/7.22.0#decorators-updates-15570
38
40
  [
39
41
  '@babel/plugin-proposal-decorators',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "build-ts",
3
- "version": "8.4.0",
3
+ "version": "8.4.2",
4
4
  "repository": "github:WillBooster/build-ts",
5
5
  "license": "UNLICENSED",
6
6
  "author": "WillBooster Inc.",
@@ -36,7 +36,7 @@
36
36
  "@babel/core": "7.22.10",
37
37
  "@babel/plugin-proposal-decorators": "7.22.10",
38
38
  "@babel/plugin-proposal-explicit-resource-management": "7.22.6",
39
- "@babel/plugin-syntax-import-attributes": "7.22.5",
39
+ "@babel/plugin-syntax-import-assertions": "7.22.5",
40
40
  "@babel/plugin-transform-runtime": "7.22.10",
41
41
  "@babel/preset-env": "7.22.10",
42
42
  "@babel/preset-react": "7.22.5",