@modern-js/app-tools 3.1.2 → 3.1.3

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.
@@ -68,7 +68,12 @@ const parseModule = async ({ source, filename })=>{
68
68
  if (utils_namespaceObject.JS_EXTENSIONS.some((ext)=>filename.endsWith(ext))) {
69
69
  const result = await (0, external_esbuild_namespaceObject.transform)(content, {
70
70
  loader: external_path_default().extname(filename).slice(1),
71
- format: 'esm'
71
+ format: 'esm',
72
+ tsconfigRaw: {
73
+ compilerOptions: {
74
+ experimentalDecorators: true
75
+ }
76
+ }
72
77
  });
73
78
  content = result.code;
74
79
  }
@@ -23,7 +23,12 @@ const parseModule = async ({ source, filename })=>{
23
23
  if (JS_EXTENSIONS.some((ext)=>filename.endsWith(ext))) {
24
24
  const result = await transform(content, {
25
25
  loader: path.extname(filename).slice(1),
26
- format: 'esm'
26
+ format: 'esm',
27
+ tsconfigRaw: {
28
+ compilerOptions: {
29
+ experimentalDecorators: true
30
+ }
31
+ }
27
32
  });
28
33
  content = result.code;
29
34
  }
@@ -24,7 +24,12 @@ const parseModule = async ({ source, filename })=>{
24
24
  if (JS_EXTENSIONS.some((ext)=>filename.endsWith(ext))) {
25
25
  const result = await transform(content, {
26
26
  loader: path.extname(filename).slice(1),
27
- format: 'esm'
27
+ format: 'esm',
28
+ tsconfigRaw: {
29
+ compilerOptions: {
30
+ experimentalDecorators: true
31
+ }
32
+ }
28
33
  });
29
34
  content = result.code;
30
35
  }
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.1.2",
18
+ "version": "3.1.3",
19
19
  "types": "./dist/types/index.d.ts",
20
20
  "main": "./dist/cjs/index.js",
21
21
  "exports": {
@@ -94,19 +94,19 @@
94
94
  "ndepe": "^0.1.13",
95
95
  "pkg-types": "^1.3.1",
96
96
  "std-env": "^3.10.0",
97
- "@modern-js/builder": "3.1.2",
98
- "@modern-js/i18n-utils": "3.1.2",
99
- "@modern-js/plugin": "3.1.2",
100
- "@modern-js/plugin-data-loader": "3.1.2",
101
- "@modern-js/prod-server": "3.1.2",
102
- "@modern-js/server": "3.1.2",
103
- "@modern-js/server-core": "3.1.2",
104
- "@modern-js/types": "3.1.2",
105
- "@modern-js/utils": "3.1.2",
106
- "@modern-js/server-utils": "3.1.2"
97
+ "@modern-js/builder": "3.1.3",
98
+ "@modern-js/i18n-utils": "3.1.3",
99
+ "@modern-js/plugin-data-loader": "3.1.3",
100
+ "@modern-js/plugin": "3.1.3",
101
+ "@modern-js/prod-server": "3.1.3",
102
+ "@modern-js/server": "3.1.3",
103
+ "@modern-js/server-core": "3.1.3",
104
+ "@modern-js/server-utils": "3.1.3",
105
+ "@modern-js/types": "3.1.3",
106
+ "@modern-js/utils": "3.1.3"
107
107
  },
108
108
  "devDependencies": {
109
- "@rslib/core": "0.20.3",
109
+ "@rslib/core": "0.21.0",
110
110
  "@types/babel__traverse": "7.28.0",
111
111
  "@types/node": "^20",
112
112
  "ts-node": "^10.9.2",