@modern-js/server-utils 2.47.1 → 2.48.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.
@@ -21,7 +21,6 @@ __export(typescriptLoader_exports, {
21
21
  TypescriptLoader: () => TypescriptLoader
22
22
  });
23
23
  module.exports = __toCommonJS(typescriptLoader_exports);
24
- var import_define_property = require("@swc/helpers/_/_define_property");
25
24
  class TypescriptLoader {
26
25
  load() {
27
26
  if (this.tsBinary) {
@@ -40,8 +39,6 @@ class TypescriptLoader {
40
39
  }
41
40
  }
42
41
  constructor({ appDirectory }) {
43
- (0, import_define_property._)(this, "tsBinary", void 0);
44
- (0, import_define_property._)(this, "appDirectory", void 0);
45
42
  this.appDirectory = appDirectory;
46
43
  }
47
44
  }
@@ -1,36 +1,28 @@
1
1
  import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
2
- import { _ as _create_class } from "@swc/helpers/_/_create_class";
3
- import { _ as _define_property } from "@swc/helpers/_/_define_property";
4
2
  var TypescriptLoader = /* @__PURE__ */ function() {
5
3
  "use strict";
6
4
  function TypescriptLoader2(param) {
7
5
  var appDirectory = param.appDirectory;
8
6
  _class_call_check(this, TypescriptLoader2);
9
- _define_property(this, "tsBinary", void 0);
10
- _define_property(this, "appDirectory", void 0);
11
7
  this.appDirectory = appDirectory;
12
8
  }
13
- _create_class(TypescriptLoader2, [
14
- {
15
- key: "load",
16
- value: function load() {
17
- if (this.tsBinary) {
18
- return this.tsBinary;
19
- }
20
- try {
21
- var tsPath = require.resolve("typescript", {
22
- paths: [
23
- this.appDirectory || process.cwd()
24
- ]
25
- });
26
- var ts = require(tsPath);
27
- return ts;
28
- } catch (error) {
29
- throw new Error('TypeScript could not be found! Please, install "typescript" package.');
30
- }
31
- }
9
+ var _proto = TypescriptLoader2.prototype;
10
+ _proto.load = function load() {
11
+ if (this.tsBinary) {
12
+ return this.tsBinary;
32
13
  }
33
- ]);
14
+ try {
15
+ var tsPath = require.resolve("typescript", {
16
+ paths: [
17
+ this.appDirectory || process.cwd()
18
+ ]
19
+ });
20
+ var ts = require(tsPath);
21
+ return ts;
22
+ } catch (error) {
23
+ throw new Error('TypeScript could not be found! Please, install "typescript" package.');
24
+ }
25
+ };
34
26
  return TypescriptLoader2;
35
27
  }();
36
28
  export {
@@ -1,4 +1,3 @@
1
- import { _ as _define_property } from "@swc/helpers/_/_define_property";
2
1
  class TypescriptLoader {
3
2
  load() {
4
3
  if (this.tsBinary) {
@@ -17,8 +16,6 @@ class TypescriptLoader {
17
16
  }
18
17
  }
19
18
  constructor({ appDirectory }) {
20
- _define_property(this, "tsBinary", void 0);
21
- _define_property(this, "appDirectory", void 0);
22
19
  this.appDirectory = appDirectory;
23
20
  }
24
21
  }
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.47.1",
18
+ "version": "2.48.1",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -36,12 +36,12 @@
36
36
  "@babel/preset-env": "^7.22.15",
37
37
  "@babel/preset-react": "^7.22.15",
38
38
  "@babel/preset-typescript": "^7.22.15",
39
- "@rsbuild/babel-preset": "0.4.6",
39
+ "@rsbuild/babel-preset": "0.4.15",
40
40
  "@swc/helpers": "0.5.3",
41
41
  "babel-plugin-transform-typescript-metadata": "^0.3.2",
42
- "@modern-js/babel-compiler": "2.47.1",
43
- "@modern-js/utils": "2.47.1",
44
- "@modern-js/babel-plugin-module-resolver": "2.47.1"
42
+ "@modern-js/babel-compiler": "2.48.1",
43
+ "@modern-js/utils": "2.48.1",
44
+ "@modern-js/babel-plugin-module-resolver": "2.48.1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/babel__core": "^7.20.1",
@@ -50,9 +50,9 @@
50
50
  "jest": "^29",
51
51
  "ts-jest": "^29.1.0",
52
52
  "typescript": "^5",
53
- "@modern-js/server-core": "2.47.1",
54
- "@scripts/build": "2.47.1",
55
- "@scripts/jest-config": "2.47.1"
53
+ "@modern-js/server-core": "2.48.1",
54
+ "@scripts/build": "2.48.1",
55
+ "@scripts/jest-config": "2.48.1"
56
56
  },
57
57
  "sideEffects": false,
58
58
  "publishConfig": {