@rsbuild/plugin-babel 0.1.5 → 0.1.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.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.5",
3
+ "version": "0.1.7",
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.5"
30
+ "@rsbuild/shared": "0.1.7"
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/core": "0.1.5",
37
- "@rsbuild/test-helper": "0.1.5"
36
+ "@rsbuild/core": "0.1.7",
37
+ "@rsbuild/test-helper": "0.1.7"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public",