@rsbuild/plugin-babel 0.7.5 → 0.7.7
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/compiled/babel-loader/index.js +13 -13
- package/dist/index.cjs +2 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/package.json +9 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 104:
|
|
5
5
|
/***/ ((module) => {
|
|
6
6
|
|
|
7
7
|
const STRIP_FILENAME_RE = /^[^:]+: /;
|
|
@@ -36,7 +36,7 @@ module.exports = LoaderError;
|
|
|
36
36
|
|
|
37
37
|
/***/ }),
|
|
38
38
|
|
|
39
|
-
/***/
|
|
39
|
+
/***/ 228:
|
|
40
40
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -61,7 +61,7 @@ const {
|
|
|
61
61
|
mkdir
|
|
62
62
|
} = __nccwpck_require__(292);
|
|
63
63
|
const findCacheDirP = __nccwpck_require__.e(/* import() */ 672).then(__nccwpck_require__.bind(__nccwpck_require__, 672));
|
|
64
|
-
const transform = __nccwpck_require__(
|
|
64
|
+
const transform = __nccwpck_require__(0);
|
|
65
65
|
// Lazily instantiated when needed
|
|
66
66
|
let defaultCacheDirectory = null;
|
|
67
67
|
let hashType = "sha256";
|
|
@@ -220,7 +220,7 @@ module.exports = async function (params) {
|
|
|
220
220
|
|
|
221
221
|
/***/ }),
|
|
222
222
|
|
|
223
|
-
/***/
|
|
223
|
+
/***/ 811:
|
|
224
224
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
225
225
|
|
|
226
226
|
let babel;
|
|
@@ -241,10 +241,10 @@ if (/^6\./.test(babel.version)) {
|
|
|
241
241
|
const {
|
|
242
242
|
version
|
|
243
243
|
} = __nccwpck_require__(684);
|
|
244
|
-
const cache = __nccwpck_require__(
|
|
245
|
-
const transform = __nccwpck_require__(
|
|
246
|
-
const injectCaller = __nccwpck_require__(
|
|
247
|
-
const schema = __nccwpck_require__(
|
|
244
|
+
const cache = __nccwpck_require__(228);
|
|
245
|
+
const transform = __nccwpck_require__(0);
|
|
246
|
+
const injectCaller = __nccwpck_require__(829);
|
|
247
|
+
const schema = __nccwpck_require__(395);
|
|
248
248
|
const {
|
|
249
249
|
isAbsolute
|
|
250
250
|
} = __nccwpck_require__(17);
|
|
@@ -404,7 +404,7 @@ async function loader(source, inputSourceMap, overrides) {
|
|
|
404
404
|
|
|
405
405
|
/***/ }),
|
|
406
406
|
|
|
407
|
-
/***/
|
|
407
|
+
/***/ 829:
|
|
408
408
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
409
409
|
|
|
410
410
|
const babel = __nccwpck_require__(718);
|
|
@@ -451,14 +451,14 @@ function supportsCallerOption() {
|
|
|
451
451
|
|
|
452
452
|
/***/ }),
|
|
453
453
|
|
|
454
|
-
/***/
|
|
454
|
+
/***/ 0:
|
|
455
455
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
456
456
|
|
|
457
457
|
const babel = __nccwpck_require__(718);
|
|
458
458
|
const {
|
|
459
459
|
promisify
|
|
460
460
|
} = __nccwpck_require__(837);
|
|
461
|
-
const LoaderError = __nccwpck_require__(
|
|
461
|
+
const LoaderError = __nccwpck_require__(104);
|
|
462
462
|
const transform = promisify(babel.transform);
|
|
463
463
|
module.exports = async function (source, options) {
|
|
464
464
|
let result;
|
|
@@ -603,7 +603,7 @@ module.exports = require("zlib");
|
|
|
603
603
|
|
|
604
604
|
/***/ }),
|
|
605
605
|
|
|
606
|
-
/***/
|
|
606
|
+
/***/ 395:
|
|
607
607
|
/***/ ((module) => {
|
|
608
608
|
|
|
609
609
|
"use strict";
|
|
@@ -748,7 +748,7 @@ module.exports = JSON.parse('{"type":"object","properties":{"cacheDirectory":{"o
|
|
|
748
748
|
/******/ // startup
|
|
749
749
|
/******/ // Load entry module and return exports
|
|
750
750
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
751
|
-
/******/ var __webpack_exports__ = __nccwpck_require__(
|
|
751
|
+
/******/ var __webpack_exports__ = __nccwpck_require__(811);
|
|
752
752
|
/******/ module.exports = __webpack_exports__;
|
|
753
753
|
/******/
|
|
754
754
|
/******/ })()
|
package/dist/index.cjs
CHANGED
|
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var src_exports = {};
|
|
32
32
|
__export(src_exports, {
|
|
33
|
+
PLUGIN_BABEL_NAME: () => PLUGIN_BABEL_NAME,
|
|
33
34
|
getBabelUtils: () => getBabelUtils,
|
|
34
35
|
getDefaultBabelOptions: () => getDefaultBabelOptions,
|
|
35
36
|
getUseBuiltIns: () => getUseBuiltIns,
|
|
@@ -278,6 +279,7 @@ var pluginBabel = (options = {}) => ({
|
|
|
278
279
|
});
|
|
279
280
|
// Annotate the CommonJS export names for ESM import in node:
|
|
280
281
|
0 && (module.exports = {
|
|
282
|
+
PLUGIN_BABEL_NAME,
|
|
281
283
|
getBabelUtils,
|
|
282
284
|
getDefaultBabelOptions,
|
|
283
285
|
getUseBuiltIns,
|
package/dist/index.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ type PluginBabelOptions = {
|
|
|
97
97
|
babelLoaderOptions?: ConfigChainWithContext<BabelLoaderOptions, BabelConfigUtils>;
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
+
declare const PLUGIN_BABEL_NAME = "rsbuild:babel";
|
|
100
101
|
declare const getDefaultBabelOptions: (config: NormalizedConfig, context: RsbuildContext) => BabelLoaderOptions;
|
|
101
102
|
declare const pluginBabel: (options?: PluginBabelOptions) => RsbuildPlugin;
|
|
102
103
|
|
|
@@ -108,4 +109,4 @@ declare const modifyBabelLoaderOptions: ({ chain, CHAIN_ID, modifier, }: {
|
|
|
108
109
|
modifier: (config: TransformOptions) => TransformOptions;
|
|
109
110
|
}) => void;
|
|
110
111
|
|
|
111
|
-
export { type BabelConfigUtils, type PluginBabelOptions, type PresetEnvBuiltIns, type PresetEnvOptions, type PresetEnvTargets, getBabelUtils, getDefaultBabelOptions, getUseBuiltIns, modifyBabelLoaderOptions, pluginBabel };
|
|
112
|
+
export { type BabelConfigUtils, PLUGIN_BABEL_NAME, type PluginBabelOptions, type PresetEnvBuiltIns, type PresetEnvOptions, type PresetEnvTargets, getBabelUtils, getDefaultBabelOptions, getUseBuiltIns, modifyBabelLoaderOptions, pluginBabel };
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-babel",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"description": "Babel plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,24 +23,24 @@
|
|
|
23
23
|
"compiled"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@babel/core": "^7.24.
|
|
27
|
-
"@babel/plugin-proposal-decorators": "^7.24.
|
|
28
|
-
"@babel/plugin-transform-class-properties": "^7.24.
|
|
29
|
-
"@babel/preset-typescript": "^7.24.
|
|
26
|
+
"@babel/core": "^7.24.7",
|
|
27
|
+
"@babel/plugin-proposal-decorators": "^7.24.7",
|
|
28
|
+
"@babel/plugin-transform-class-properties": "^7.24.7",
|
|
29
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
30
30
|
"@types/babel__core": "^7.20.5",
|
|
31
31
|
"upath": "2.0.1",
|
|
32
|
-
"@rsbuild/shared": "0.7.
|
|
32
|
+
"@rsbuild/shared": "0.7.7"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "18.x",
|
|
36
36
|
"babel-loader": "9.1.3",
|
|
37
37
|
"prebundle": "1.1.0",
|
|
38
38
|
"typescript": "^5.4.2",
|
|
39
|
-
"@rsbuild/core": "0.7.
|
|
40
|
-
"@scripts/test-helper": "0.7.
|
|
39
|
+
"@rsbuild/core": "0.7.7",
|
|
40
|
+
"@scripts/test-helper": "0.7.7"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@rsbuild/core": "^0.7.
|
|
43
|
+
"@rsbuild/core": "^0.7.7"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public",
|