@modern-js/babel-compiler 2.21.0 → 2.22.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @modern-js/babel-compiler
2
2
 
3
+ ## 2.22.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [3d48836]
8
+ - Updated dependencies [5050e8e]
9
+ - @modern-js/utils@2.22.0
10
+
11
+ ## 2.21.1
12
+
13
+ ### Patch Changes
14
+
15
+ - @modern-js/utils@2.21.1
16
+
3
17
  ## 2.21.0
4
18
 
5
19
  ### Patch Changes
package/dist/cjs/build.js CHANGED
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "build", {
6
6
  enumerable: true,
7
- get: () => build
7
+ get: function() {
8
+ return build;
9
+ }
8
10
  });
9
11
  const _utils = require("@modern-js/utils");
10
12
  const _constants = require("./constants");
@@ -10,10 +10,18 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- BuildWatchEvent: () => BuildWatchEvent,
14
- BuildWatchEmitter: () => BuildWatchEmitter,
15
- runBuildWatch: () => runBuildWatch,
16
- buildWatch: () => buildWatch
13
+ BuildWatchEvent: function() {
14
+ return BuildWatchEvent;
15
+ },
16
+ BuildWatchEmitter: function() {
17
+ return BuildWatchEmitter;
18
+ },
19
+ runBuildWatch: function() {
20
+ return runBuildWatch;
21
+ },
22
+ buildWatch: function() {
23
+ return buildWatch;
24
+ }
17
25
  });
18
26
  const _define_property = require("@swc/helpers/_/_define_property");
19
27
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
@@ -10,10 +10,18 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- isRes: () => isRes,
14
- getDistFilePath: () => getDistFilePath,
15
- resolveSourceMap: () => resolveSourceMap,
16
- compiler: () => compiler
13
+ isRes: function() {
14
+ return isRes;
15
+ },
16
+ getDistFilePath: function() {
17
+ return getDistFilePath;
18
+ },
19
+ resolveSourceMap: function() {
20
+ return resolveSourceMap;
21
+ },
22
+ compiler: function() {
23
+ return compiler;
24
+ }
17
25
  });
18
26
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
19
27
  const _path = /* @__PURE__ */ _interop_require_wildcard._(require("path"));
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "CompilerErrorResult", {
6
6
  enumerable: true,
7
- get: () => CompilerErrorResult
7
+ get: function() {
8
+ return CompilerErrorResult;
9
+ }
8
10
  });
9
11
  const _define_property = require("@swc/helpers/_/_define_property");
10
12
  class CompilerErrorResult {
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "defaultDistFileExtMap", {
6
6
  enumerable: true,
7
- get: () => defaultDistFileExtMap
7
+ get: function() {
8
+ return defaultDistFileExtMap;
9
+ }
8
10
  });
9
11
  const defaultDistFileExtMap = {
10
12
  ".js": ".js",
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "mergeDefaultOption", {
6
6
  enumerable: true,
7
- get: () => mergeDefaultOption
7
+ get: function() {
8
+ return mergeDefaultOption;
9
+ }
8
10
  });
9
11
  const _constants = require("./constants");
10
12
  const defaultOptions = {
@@ -10,10 +10,18 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- getGlobPattern: () => getGlobPattern,
14
- getFinalExtensions: () => getFinalExtensions,
15
- getFilesFromDir: () => getFilesFromDir,
16
- getFinalCompilerOption: () => getFinalCompilerOption
13
+ getGlobPattern: function() {
14
+ return getGlobPattern;
15
+ },
16
+ getFinalExtensions: function() {
17
+ return getFinalExtensions;
18
+ },
19
+ getFilesFromDir: function() {
20
+ return getFilesFromDir;
21
+ },
22
+ getFinalCompilerOption: function() {
23
+ return getFinalCompilerOption;
24
+ }
17
25
  });
18
26
  const _utils = require("@modern-js/utils");
19
27
  const _core = require("@babel/core");
package/dist/cjs/index.js CHANGED
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "compiler", {
6
6
  enumerable: true,
7
- get: () => compiler
7
+ get: function() {
8
+ return compiler;
9
+ }
8
10
  });
9
11
  const _export_star = require("@swc/helpers/_/_export_star");
10
12
  const _getFinalOption = require("./getFinalOption");
package/dist/cjs/utils.js CHANGED
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "addSourceMappingUrl", {
6
6
  enumerable: true,
7
- get: () => addSourceMappingUrl
7
+ get: function() {
8
+ return addSourceMappingUrl;
9
+ }
8
10
  });
9
11
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
10
12
  const _path = /* @__PURE__ */ _interop_require_wildcard._(require("path"));
@@ -10,11 +10,21 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- sourceDirAndFileNamesValidMessage: () => sourceDirAndFileNamesValidMessage,
14
- watchDirValidMessage: () => watchDirValidMessage,
15
- validateSourceDirAndFileNames: () => validateSourceDirAndFileNames,
16
- validateWatchDir: () => validateWatchDir,
17
- validate: () => validate
13
+ sourceDirAndFileNamesValidMessage: function() {
14
+ return sourceDirAndFileNamesValidMessage;
15
+ },
16
+ watchDirValidMessage: function() {
17
+ return watchDirValidMessage;
18
+ },
19
+ validateSourceDirAndFileNames: function() {
20
+ return validateSourceDirAndFileNames;
21
+ },
22
+ validateWatchDir: function() {
23
+ return validateWatchDir;
24
+ },
25
+ validate: function() {
26
+ return validate;
27
+ }
18
28
  });
19
29
  const _utils = require("@modern-js/utils");
20
30
  const sourceDirAndFileNamesValidMessage = "At least one of the sourceDir and filenames configurations must be configured";
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.21.0",
18
+ "version": "2.22.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@babel/core": "^7.21.8",
35
35
  "@swc/helpers": "0.5.1",
36
- "@modern-js/utils": "2.21.0"
36
+ "@modern-js/utils": "2.22.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@babel/plugin-transform-classes": "^7.21.0",
@@ -44,8 +44,8 @@
44
44
  "@types/node": "^14",
45
45
  "typescript": "^5",
46
46
  "jest": "^29",
47
- "@scripts/jest-config": "2.21.0",
48
- "@scripts/build": "2.21.0"
47
+ "@scripts/jest-config": "2.22.0",
48
+ "@scripts/build": "2.22.0"
49
49
  },
50
50
  "sideEffects": false,
51
51
  "modernConfig": {