@rsbuild/plugin-babel 1.0.1-beta.2 → 1.0.1-beta.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.
@@ -1,6 +1,6 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 45: (module) => {
3
+ 241: (module) => {
4
4
  const STRIP_FILENAME_RE = /^[^:]+: /;
5
5
  const format = (err) => {
6
6
  if (err instanceof SyntaxError) {
@@ -26,7 +26,7 @@
26
26
  }
27
27
  module.exports = LoaderError;
28
28
  },
29
- 872: (module, __unused_webpack_exports, __nccwpck_require__) => {
29
+ 364: (module, __unused_webpack_exports, __nccwpck_require__) => {
30
30
  const os = __nccwpck_require__(37);
31
31
  const path = __nccwpck_require__(17);
32
32
  const zlib = __nccwpck_require__(796);
@@ -36,7 +36,7 @@
36
36
  const findCacheDirP = __nccwpck_require__
37
37
  .e(672)
38
38
  .then(__nccwpck_require__.bind(__nccwpck_require__, 672));
39
- const transform = __nccwpck_require__(166);
39
+ const transform = __nccwpck_require__(778);
40
40
  let defaultCacheDirectory = null;
41
41
  let hashType = "sha256";
42
42
  try {
@@ -115,7 +115,7 @@
115
115
  return await handleCache(directory, params);
116
116
  };
117
117
  },
118
- 322: (module, __unused_webpack_exports, __nccwpck_require__) => {
118
+ 510: (module, __unused_webpack_exports, __nccwpck_require__) => {
119
119
  let babel;
120
120
  try {
121
121
  babel = __nccwpck_require__(718);
@@ -134,10 +134,10 @@
134
134
  );
135
135
  }
136
136
  const { version } = __nccwpck_require__(684);
137
- const cache = __nccwpck_require__(872);
138
- const transform = __nccwpck_require__(166);
139
- const injectCaller = __nccwpck_require__(407);
140
- const schema = __nccwpck_require__(731);
137
+ const cache = __nccwpck_require__(364);
138
+ const transform = __nccwpck_require__(778);
139
+ const injectCaller = __nccwpck_require__(617);
140
+ const schema = __nccwpck_require__(890);
141
141
  const { isAbsolute } = __nccwpck_require__(17);
142
142
  const validateOptions = __nccwpck_require__(14).validate;
143
143
  function subscribe(subscriber, metadata, context) {
@@ -295,7 +295,7 @@
295
295
  return [source, inputSourceMap];
296
296
  }
297
297
  },
298
- 407: (module, __unused_webpack_exports, __nccwpck_require__) => {
298
+ 617: (module, __unused_webpack_exports, __nccwpck_require__) => {
299
299
  const babel = __nccwpck_require__(718);
300
300
  module.exports = function injectCaller(opts, target) {
301
301
  if (!supportsCallerOption()) return opts;
@@ -329,10 +329,10 @@
329
329
  return supportsCallerOptionFlag;
330
330
  }
331
331
  },
332
- 166: (module, __unused_webpack_exports, __nccwpck_require__) => {
332
+ 778: (module, __unused_webpack_exports, __nccwpck_require__) => {
333
333
  const babel = __nccwpck_require__(718);
334
334
  const { promisify } = __nccwpck_require__(837);
335
- const LoaderError = __nccwpck_require__(45);
335
+ const LoaderError = __nccwpck_require__(241);
336
336
  const transform = promisify(babel.transform);
337
337
  module.exports = async function (source, options) {
338
338
  let result;
@@ -410,7 +410,7 @@
410
410
  "use strict";
411
411
  module.exports = require("zlib");
412
412
  },
413
- 731: (module) => {
413
+ 890: (module) => {
414
414
  "use strict";
415
415
  module.exports = JSON.parse(
416
416
  '{"type":"object","properties":{"cacheDirectory":{"oneOf":[{"type":"boolean"},{"type":"string"}],"default":false},"cacheIdentifier":{"type":"string"},"cacheCompression":{"type":"boolean","default":true},"customize":{"type":"string","default":null}},"additionalProperties":true}',
@@ -503,6 +503,6 @@
503
503
  }
504
504
  };
505
505
  })();
506
- var __webpack_exports__ = __nccwpck_require__(322);
506
+ var __webpack_exports__ = __nccwpck_require__(510);
507
507
  module.exports = __webpack_exports__;
508
508
  })();
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
9
9
  throw Error('Dynamic require of "' + x + '" is not supported');
10
10
  });
11
11
 
12
- // ../../node_modules/.pnpm/@modern-js+module-tools@2.55.0_eslint@9.6.0_typescript@5.5.2/node_modules/@modern-js/module-tools/shims/esm.js
12
+ // ../../node_modules/.pnpm/@modern-js+module-tools@2.55.0_typescript@5.5.2/node_modules/@modern-js/module-tools/shims/esm.js
13
13
  import { fileURLToPath } from "url";
14
14
  import path from "path";
15
15
  var getFilename = () => fileURLToPath(import.meta.url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-babel",
3
- "version": "1.0.1-beta.2",
3
+ "version": "1.0.1-beta.3",
4
4
  "description": "Babel plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  "compiled"
24
24
  ],
25
25
  "dependencies": {
26
- "@babel/core": "^7.24.8",
26
+ "@babel/core": "^7.24.9",
27
27
  "@babel/plugin-proposal-decorators": "^7.24.7",
28
28
  "@babel/plugin-transform-class-properties": "^7.24.7",
29
29
  "@babel/preset-typescript": "^7.24.7",
@@ -37,8 +37,8 @@
37
37
  "babel-loader": "9.1.3",
38
38
  "prebundle": "1.2.2",
39
39
  "typescript": "^5.5.2",
40
- "@rsbuild/core": "1.0.1-beta.2",
41
- "@scripts/test-helper": "1.0.1-beta.2"
40
+ "@rsbuild/core": "1.0.1-beta.3",
41
+ "@scripts/test-helper": "1.0.1-beta.3"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@rsbuild/core": "^1.0.1-beta.0"