@rsbuild/plugin-babel 0.3.3 → 0.3.4

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
@@ -90,4 +90,4 @@ declare const modifyBabelLoaderOptions: ({ chain, CHAIN_ID, modifier, }: {
90
90
  modifier: (config: TransformOptions) => TransformOptions;
91
91
  }) => void;
92
92
 
93
- export { BabelConfigUtils, PluginBabelOptions, PresetEnvBuiltIns, PresetEnvOptions, PresetEnvTargets, getBabelUtils, getDefaultBabelOptions, getUseBuiltIns, modifyBabelLoaderOptions, pluginBabel };
93
+ export { type BabelConfigUtils, type PluginBabelOptions, type PresetEnvBuiltIns, type PresetEnvOptions, type PresetEnvTargets, getBabelUtils, getDefaultBabelOptions, getUseBuiltIns, modifyBabelLoaderOptions, pluginBabel };
package/dist/index.mjs CHANGED
@@ -1,3 +1,6 @@
1
+ import { createRequire } from 'module';
2
+ var require = createRequire(import.meta['url']);
3
+
1
4
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
5
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
6
  }) : x)(function(x) {
@@ -6,17 +9,13 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
6
9
  throw Error('Dynamic require of "' + x + '" is not supported');
7
10
  });
8
11
 
9
- // ../../node_modules/.pnpm/@modern-js+module-tools@2.45.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
12
+ // ../../node_modules/.pnpm/@modern-js+module-tools@2.46.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
10
13
  import { fileURLToPath } from "url";
11
14
  import path from "path";
12
15
  var getFilename = () => fileURLToPath(import.meta.url);
13
16
  var getDirname = () => path.dirname(getFilename());
14
17
  var __dirname = /* @__PURE__ */ getDirname();
15
18
 
16
- // ../../scripts/requireShims.js
17
- import { createRequire } from "module";
18
- global.require = createRequire(import.meta.url);
19
-
20
19
  // src/plugin.ts
21
20
  import path2 from "path";
22
21
  import { PLUGIN_BABEL_NAME } from "@rsbuild/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-babel",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Babel plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,13 +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.3"
30
+ "@rsbuild/shared": "0.3.4"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "16.x",
34
34
  "typescript": "^5.3.0",
35
- "@rsbuild/core": "0.3.3",
36
- "@scripts/test-helper": "1.0.0"
35
+ "@rsbuild/core": "0.3.4",
36
+ "@scripts/test-helper": "0.3.4"
37
+ },
38
+ "peerDependencies": {
39
+ "@rsbuild/core": "^0.3.4"
37
40
  },
38
41
  "publishConfig": {
39
42
  "access": "public",