@rsbuild/plugin-babel 0.6.5 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  import { NormalizedConfig, RsbuildContext, RsbuildPlugin } from '@rsbuild/core';
2
- import { ChainedConfigWithUtils, NormalizedConfig as NormalizedConfig$1, BundlerChain, ChainIdentifier } from '@rsbuild/shared';
3
2
  import { PluginItem, TransformOptions } from '@babel/core';
4
3
  export { TransformOptions as BabelTransformOptions } from '@babel/core';
4
+ import { ChainedConfigWithUtils, NormalizedConfig as NormalizedConfig$1, BundlerChain, ChainIdentifier } from '@rsbuild/shared';
5
5
 
6
6
  type PresetEnvTargets = string | string[] | Record<string, string>;
7
7
  type PresetEnvBuiltIns = 'usage' | 'entry' | false;
package/dist/index.mjs CHANGED
@@ -19,12 +19,12 @@ var __dirname = /* @__PURE__ */ getDirname();
19
19
  // src/plugin.ts
20
20
  import path2, { isAbsolute as isAbsolute2, join } from "path";
21
21
  import {
22
- fse,
23
- isProd,
22
+ SCRIPT_REGEX,
24
23
  castArray as castArray2,
25
24
  cloneDeep,
25
+ fse,
26
26
  getNodeEnv,
27
- SCRIPT_REGEX
27
+ isProd
28
28
  } from "@rsbuild/shared";
29
29
 
30
30
  // src/helper.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-babel",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "description": "Babel plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,16 +29,16 @@
29
29
  "@babel/plugin-transform-class-properties": "^7.24.1",
30
30
  "@types/babel__core": "^7.20.5",
31
31
  "upath": "2.0.1",
32
- "@rsbuild/shared": "0.6.5"
32
+ "@rsbuild/shared": "0.6.6"
33
33
  },
34
34
  "devDependencies": {
35
- "@types/node": "16.x",
35
+ "@types/node": "18.x",
36
36
  "typescript": "^5.4.2",
37
- "@rsbuild/core": "0.6.5",
38
- "@scripts/test-helper": "0.6.5"
37
+ "@rsbuild/core": "0.6.6",
38
+ "@scripts/test-helper": "0.6.6"
39
39
  },
40
40
  "peerDependencies": {
41
- "@rsbuild/core": "^0.6.5"
41
+ "@rsbuild/core": "^0.6.6"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public",