@rsbuild/plugin-babel 0.7.3 → 0.7.5

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
@@ -1,4 +1,4 @@
1
- import { ConfigChainWithContext, NormalizedConfig, RsbuildContext, RsbuildPlugin, BundlerChain, ChainIdentifier } from '@rsbuild/core';
1
+ import { ConfigChainWithContext, NormalizedConfig, RsbuildContext, RsbuildPlugin, RspackChain, ChainIdentifier } from '@rsbuild/core';
2
2
  import { PluginItem, TransformOptions } from '@babel/core';
3
3
  export { TransformOptions as BabelTransformOptions } from '@babel/core';
4
4
 
@@ -103,7 +103,7 @@ declare const pluginBabel: (options?: PluginBabelOptions) => RsbuildPlugin;
103
103
  declare const getBabelUtils: (config: TransformOptions) => BabelConfigUtils;
104
104
  declare const getUseBuiltIns: (config: NormalizedConfig) => false | "usage" | "entry";
105
105
  declare const modifyBabelLoaderOptions: ({ chain, CHAIN_ID, modifier, }: {
106
- chain: BundlerChain;
106
+ chain: RspackChain;
107
107
  CHAIN_ID: ChainIdentifier;
108
108
  modifier: (config: TransformOptions) => TransformOptions;
109
109
  }) => void;
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.51.0_eslint@9.4.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js
12
+ // ../../node_modules/.pnpm/@modern-js+module-tools@2.52.0_eslint@9.4.0_typescript@5.4.5/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.7.3",
3
+ "version": "0.7.5",
4
4
  "description": "Babel plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,18 +29,18 @@
29
29
  "@babel/preset-typescript": "^7.24.6",
30
30
  "@types/babel__core": "^7.20.5",
31
31
  "upath": "2.0.1",
32
- "@rsbuild/shared": "0.7.3"
32
+ "@rsbuild/shared": "0.7.5"
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.3",
40
- "@scripts/test-helper": "0.7.3"
39
+ "@rsbuild/core": "0.7.5",
40
+ "@scripts/test-helper": "0.7.5"
41
41
  },
42
42
  "peerDependencies": {
43
- "@rsbuild/core": "^0.7.3"
43
+ "@rsbuild/core": "^0.7.5"
44
44
  },
45
45
  "publishConfig": {
46
46
  "access": "public",