@rsbuild/plugin-babel 0.7.0-beta.4 → 0.7.0-beta.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 +2 -3
- package/dist/index.js +1 -4
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { NormalizedConfig, RsbuildContext, RsbuildPlugin } from '@rsbuild/core';
|
|
1
|
+
import { ChainedConfigWithUtils, NormalizedConfig, RsbuildContext, RsbuildPlugin, BundlerChain, ChainIdentifier } from '@rsbuild/core';
|
|
2
2
|
import { PluginItem, TransformOptions } from '@babel/core';
|
|
3
3
|
export { TransformOptions as BabelTransformOptions } from '@babel/core';
|
|
4
|
-
import { ChainedConfigWithUtils, NormalizedConfig as NormalizedConfig$1, BundlerChain, ChainIdentifier } from '@rsbuild/shared';
|
|
5
4
|
|
|
6
5
|
type PresetEnvTargets = string | string[] | Record<string, string>;
|
|
7
6
|
type PresetEnvBuiltIns = 'usage' | 'entry' | false;
|
|
@@ -102,7 +101,7 @@ declare const getDefaultBabelOptions: (config: NormalizedConfig, context: Rsbuil
|
|
|
102
101
|
declare const pluginBabel: (options?: PluginBabelOptions) => RsbuildPlugin;
|
|
103
102
|
|
|
104
103
|
declare const getBabelUtils: (config: TransformOptions) => BabelConfigUtils;
|
|
105
|
-
declare const getUseBuiltIns: (config: NormalizedConfig
|
|
104
|
+
declare const getUseBuiltIns: (config: NormalizedConfig) => false | "usage" | "entry";
|
|
106
105
|
declare const modifyBabelLoaderOptions: ({ chain, CHAIN_ID, modifier, }: {
|
|
107
106
|
chain: BundlerChain;
|
|
108
107
|
CHAIN_ID: ChainIdentifier;
|
package/dist/index.js
CHANGED
|
@@ -29,10 +29,7 @@ import {
|
|
|
29
29
|
|
|
30
30
|
// src/helper.ts
|
|
31
31
|
import { isAbsolute, normalize, sep } from "path";
|
|
32
|
-
import {
|
|
33
|
-
castArray,
|
|
34
|
-
mergeChainedOptions
|
|
35
|
-
} from "@rsbuild/shared";
|
|
32
|
+
import { castArray, mergeChainedOptions } from "@rsbuild/shared";
|
|
36
33
|
import upath from "upath";
|
|
37
34
|
var BABEL_JS_RULE = "babel-js";
|
|
38
35
|
var normalizeToPosixPath = (p) => upath.normalizeSafe(normalize(p || "")).replace(/^([a-zA-Z]+):/, (_, m) => `/${m.toLowerCase()}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-babel",
|
|
3
|
-
"version": "0.7.0-beta.
|
|
3
|
+
"version": "0.7.0-beta.6",
|
|
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.1",
|
|
30
30
|
"@types/babel__core": "^7.20.5",
|
|
31
31
|
"upath": "2.0.1",
|
|
32
|
-
"@rsbuild/shared": "0.7.0-beta.
|
|
32
|
+
"@rsbuild/shared": "0.7.0-beta.6"
|
|
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.0-beta.
|
|
40
|
-
"@scripts/test-helper": "0.7.0-beta.
|
|
39
|
+
"@rsbuild/core": "0.7.0-beta.6",
|
|
40
|
+
"@scripts/test-helper": "0.7.0-beta.6"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@rsbuild/core": "^0.7.0-beta.
|
|
43
|
+
"@rsbuild/core": "^0.7.0-beta.6"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public",
|