@rsbuild/plugin-babel 0.3.4 → 0.3.6
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/dist/index.d.ts +10 -0
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -61,8 +61,18 @@ type BabelConfigUtils = {
|
|
|
61
61
|
addExcludes: (excludes: RuleCondition) => void;
|
|
62
62
|
};
|
|
63
63
|
type PluginBabelOptions = {
|
|
64
|
+
/**
|
|
65
|
+
* Used to specify the files that need to be compiled by Babel.
|
|
66
|
+
*/
|
|
64
67
|
include?: RuleCondition;
|
|
68
|
+
/**
|
|
69
|
+
* Used to specify the files that do not need to be compiled by Babel.
|
|
70
|
+
*/
|
|
65
71
|
exclude?: RuleCondition;
|
|
72
|
+
/**
|
|
73
|
+
* Options passed to `babel-loader`.
|
|
74
|
+
* @see https://github.com/babel/babel-loader
|
|
75
|
+
*/
|
|
66
76
|
babelLoaderOptions?: ChainedConfigWithUtils<TransformOptions, BabelConfigUtils>;
|
|
67
77
|
};
|
|
68
78
|
|
package/dist/index.mjs
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.46.
|
|
12
|
+
// ../../node_modules/.pnpm/@modern-js+module-tools@2.46.1_typescript@5.3.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": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "Babel plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"@babel/preset-typescript": "^7.23.2",
|
|
28
28
|
"@types/babel__core": "^7.20.3",
|
|
29
29
|
"upath": "2.0.1",
|
|
30
|
-
"@rsbuild/shared": "0.3.
|
|
30
|
+
"@rsbuild/shared": "0.3.6"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "16.x",
|
|
34
34
|
"typescript": "^5.3.0",
|
|
35
|
-
"@rsbuild/core": "0.3.
|
|
36
|
-
"@scripts/test-helper": "0.3.
|
|
35
|
+
"@rsbuild/core": "0.3.6",
|
|
36
|
+
"@scripts/test-helper": "0.3.6"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@rsbuild/core": "^0.3.
|
|
39
|
+
"@rsbuild/core": "^0.3.6"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public",
|