@rsbuild/plugin-babel 0.0.15 → 0.0.16
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/helper.js +5 -5
- package/dist/types.d.ts +2 -2
- package/package.json +4 -4
package/dist/helper.js
CHANGED
|
@@ -129,11 +129,11 @@ const applyUserBabelConfig = (defaultOptions, userBabelConfig, extraBabelUtils)
|
|
|
129
129
|
...getBabelUtils(defaultOptions),
|
|
130
130
|
...extraBabelUtils
|
|
131
131
|
};
|
|
132
|
-
return (0, import_shared.mergeChainedOptions)(
|
|
133
|
-
defaultOptions,
|
|
134
|
-
userBabelConfig
|
|
135
|
-
babelUtils
|
|
136
|
-
);
|
|
132
|
+
return (0, import_shared.mergeChainedOptions)({
|
|
133
|
+
defaults: defaultOptions,
|
|
134
|
+
options: userBabelConfig,
|
|
135
|
+
utils: babelUtils
|
|
136
|
+
});
|
|
137
137
|
}
|
|
138
138
|
return defaultOptions;
|
|
139
139
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChainedConfigWithUtils } from '@rsbuild/shared';
|
|
2
2
|
import type { PluginItem as BabelPlugin, PluginOptions as BabelPluginOptions, TransformOptions as BabelTransformOptions } from '@babel/core';
|
|
3
3
|
export { BabelPlugin, BabelPluginOptions, BabelTransformOptions };
|
|
4
4
|
export type PresetEnvTargets = string | string[] | Record<string, string>;
|
|
@@ -49,4 +49,4 @@ export type BabelConfigUtils = {
|
|
|
49
49
|
modifyPresetEnvOptions: (options: PresetEnvOptions) => void;
|
|
50
50
|
modifyPresetReactOptions: (options: PresetReactOptions) => void;
|
|
51
51
|
};
|
|
52
|
-
export type PluginBabelOptions =
|
|
52
|
+
export type PluginBabelOptions = ChainedConfigWithUtils<BabelTransformOptions, BabelConfigUtils>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-babel",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "Babel plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"babel-loader": "9.1.3",
|
|
27
27
|
"lodash": "^4.17.21",
|
|
28
28
|
"upath": "2.0.1",
|
|
29
|
-
"@rsbuild/shared": "0.0.
|
|
29
|
+
"@rsbuild/shared": "0.0.16"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/lodash": "^4.14.200",
|
|
33
33
|
"@types/node": "^16",
|
|
34
34
|
"typescript": "^5.2.2",
|
|
35
|
-
"@rsbuild/
|
|
36
|
-
"@rsbuild/
|
|
35
|
+
"@rsbuild/core": "0.0.16",
|
|
36
|
+
"@rsbuild/test-helper": "0.0.16"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public",
|