@rsbuild/plugin-babel 0.1.4 → 0.1.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 +1 -1
- package/dist/index.js +0 -3
- package/dist/index.mjs +0 -3
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -58,4 +58,4 @@ declare const pluginBabel: (options?: PluginBabelOptions) => RsbuildPlugin;
|
|
|
58
58
|
declare const getBabelUtils: (config: TransformOptions) => BabelConfigUtils;
|
|
59
59
|
declare const getUseBuiltIns: (config: NormalizedConfig) => false | "usage" | "entry";
|
|
60
60
|
|
|
61
|
-
export { BabelConfigUtils, PresetEnvBuiltIns, PresetEnvOptions, PresetEnvTargets, getBabelUtils, getUseBuiltIns, pluginBabel };
|
|
61
|
+
export { BabelConfigUtils, PluginBabelOptions, PresetEnvBuiltIns, PresetEnvOptions, PresetEnvTargets, getBabelUtils, getUseBuiltIns, pluginBabel };
|
package/dist/index.js
CHANGED
|
@@ -167,9 +167,6 @@ var DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS = {
|
|
|
167
167
|
var pluginBabel = (options = {}) => ({
|
|
168
168
|
name: "rsbuild:babel",
|
|
169
169
|
setup(api) {
|
|
170
|
-
if (api.context.bundlerType === "webpack") {
|
|
171
|
-
return;
|
|
172
|
-
}
|
|
173
170
|
api.modifyBundlerChain(async (chain, { CHAIN_ID, isProd }) => {
|
|
174
171
|
const getBabelOptions = () => {
|
|
175
172
|
const includes2 = [];
|
package/dist/index.mjs
CHANGED
|
@@ -148,9 +148,6 @@ var DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS = {
|
|
|
148
148
|
var pluginBabel = (options = {}) => ({
|
|
149
149
|
name: "rsbuild:babel",
|
|
150
150
|
setup(api) {
|
|
151
|
-
if (api.context.bundlerType === "webpack") {
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
151
|
api.modifyBundlerChain(async (chain, { CHAIN_ID, isProd }) => {
|
|
155
152
|
const getBabelOptions = () => {
|
|
156
153
|
const includes2 = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-babel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Babel plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"babel-loader": "9.1.3",
|
|
28
28
|
"lodash": "^4.17.21",
|
|
29
29
|
"upath": "2.0.1",
|
|
30
|
-
"@rsbuild/shared": "0.1.
|
|
30
|
+
"@rsbuild/shared": "0.1.6"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/lodash": "^4.14.200",
|
|
34
34
|
"@types/node": "^16",
|
|
35
35
|
"typescript": "^5.3.0",
|
|
36
|
-
"@rsbuild/test-helper": "0.1.
|
|
37
|
-
"@rsbuild/core": "0.1.
|
|
36
|
+
"@rsbuild/test-helper": "0.1.6",
|
|
37
|
+
"@rsbuild/core": "0.1.6"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public",
|