@rsbuild/plugin-babel 0.6.5 → 0.6.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/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
@@ -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.49.0_eslint@8.57.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js
12
+ // ../../node_modules/.pnpm/@modern-js+module-tools@2.49.1_eslint@8.57.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);
@@ -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.7",
4
4
  "description": "Babel plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,21 +24,23 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "@babel/core": "^7.24.4",
27
- "@babel/preset-typescript": "^7.24.1",
28
27
  "@babel/plugin-proposal-decorators": "^7.24.1",
29
28
  "@babel/plugin-transform-class-properties": "^7.24.1",
29
+ "@babel/preset-typescript": "^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.7"
33
33
  },
34
34
  "devDependencies": {
35
- "@types/node": "16.x",
35
+ "@types/node": "18.x",
36
+ "babel-loader": "9.1.3",
37
+ "prebundle": "1.0.3",
36
38
  "typescript": "^5.4.2",
37
- "@rsbuild/core": "0.6.5",
38
- "@scripts/test-helper": "0.6.5"
39
+ "@rsbuild/core": "0.6.7",
40
+ "@scripts/test-helper": "0.6.7"
39
41
  },
40
42
  "peerDependencies": {
41
- "@rsbuild/core": "^0.6.5"
43
+ "@rsbuild/core": "^0.6.7"
42
44
  },
43
45
  "publishConfig": {
44
46
  "access": "public",
@@ -47,6 +49,7 @@
47
49
  },
48
50
  "scripts": {
49
51
  "build": "modern build",
50
- "dev": "modern build --watch"
52
+ "dev": "modern build --watch",
53
+ "prebundle": "prebundle"
51
54
  }
52
55
  }