@rsbuild/plugin-babel 0.3.1 → 0.3.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.
package/dist/index.d.ts CHANGED
@@ -79,6 +79,7 @@ declare const getDefaultBabelOptions: () => {
79
79
  isTSX: boolean;
80
80
  })[][];
81
81
  };
82
+
82
83
  declare const pluginBabel: (options?: PluginBabelOptions) => RsbuildPlugin;
83
84
 
84
85
  declare const getBabelUtils: (config: TransformOptions) => BabelConfigUtils;
package/dist/index.js CHANGED
@@ -40,6 +40,7 @@ module.exports = __toCommonJS(src_exports);
40
40
 
41
41
  // src/plugin.ts
42
42
  var import_path2 = __toESM(require("path"));
43
+ var import_core = require("@rsbuild/core");
43
44
  var import_shared2 = require("@rsbuild/shared");
44
45
 
45
46
  // src/helper.ts
@@ -198,7 +199,7 @@ var getDefaultBabelOptions = () => {
198
199
  };
199
200
  };
200
201
  var pluginBabel = (options = {}) => ({
201
- name: "rsbuild:babel",
202
+ name: import_core.PLUGIN_BABEL_NAME,
202
203
  setup(api) {
203
204
  api.modifyBundlerChain(async (chain, { CHAIN_ID }) => {
204
205
  const getBabelOptions = () => {
package/dist/index.mjs CHANGED
@@ -19,6 +19,7 @@ global.require = createRequire(import.meta.url);
19
19
 
20
20
  // src/plugin.ts
21
21
  import path2 from "path";
22
+ import { PLUGIN_BABEL_NAME } from "@rsbuild/core";
22
23
  import { castArray as castArray2, cloneDeep, SCRIPT_REGEX, isProd } from "@rsbuild/shared";
23
24
 
24
25
  // src/helper.ts
@@ -180,7 +181,7 @@ var getDefaultBabelOptions = () => {
180
181
  };
181
182
  };
182
183
  var pluginBabel = (options = {}) => ({
183
- name: "rsbuild:babel",
184
+ name: PLUGIN_BABEL_NAME,
184
185
  setup(api) {
185
186
  api.modifyBundlerChain(async (chain, { CHAIN_ID }) => {
186
187
  const getBabelOptions = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-babel",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Babel plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,13 +27,13 @@
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.1"
30
+ "@rsbuild/shared": "0.3.3"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "16.x",
34
34
  "typescript": "^5.3.0",
35
- "@scripts/test-helper": "1.0.0",
36
- "@rsbuild/core": "0.3.1"
35
+ "@rsbuild/core": "0.3.3",
36
+ "@scripts/test-helper": "1.0.0"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public",